Commit Graph

4374 Commits

Author SHA1 Message Date
DasLixou
e2dac1c46e
Made EatEvents ItemEvents (#965) 2022-04-23 19:26:22 +02:00
Weiiswurst
c32153d221
Fix #942 (#962) 2022-04-22 19:03:28 +02:00
TheMode
057109c94e Add experimental TagSerializer.COMPOUND
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-22 04:32:44 +02:00
TheMode
3f98bde82e No need to return a new meta
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-21 18:43:42 +02:00
TheMode
3c0abb0409 Make ItemStack.Builder extends Taggable
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-20 23:14:37 +02:00
TheMode
917302cbbb Avoid potential stacktrace generation
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-20 17:19:45 +02:00
TheMode
a4adbb49fe Add a new Pos#sameView
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-19 21:09:02 +02:00
Zak Shearman
64f617c81c
Add Pos#withLookAt (#945) 2022-04-19 20:31:05 +02:00
Weiiswurst
21e6ed4918
Check for adventure mode when finishing to break a block (#948) (#949) 2022-04-19 16:52:56 +02:00
Bloepiloepi
f0fa81b712
Use smaller position offset when placing blocks (#940) 2022-04-18 01:15:38 +02:00
iam
bb236b34b6
Stop update from being sent to the player when the player places a block on themselves (#939) 2022-04-17 22:02:24 +02:00
Bloepiloepi
e57e3ff305
Fix enchantment reading (#938) 2022-04-17 21:51:16 +02:00
Bloepiloepi
ff7098a083
Item metadata fixes (#935) 2022-04-17 20:52:29 +02:00
iam
0d93faf0db
Fix worldborder size on resize + test (#937) 2022-04-17 19:54:41 +02:00
iam
6aa999aa77
Don't reload chunk when player places block on entity (#936) 2022-04-17 19:21:01 +02:00
TheMode
8b187894f7 Make Instance implements EventHandler
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-17 06:19:14 +02:00
TheMode
0f767da5f0 Use NBT#getValue
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-17 00:16:59 +02:00
TheMode
c5bef0958d Prepare potential CAS tag impl
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-16 19:15:48 +02:00
TheMode
49488c4893 Remove nbt tag list/map restriction
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-16 14:37:41 +02:00
TheMode
198618ba98 Add rate limiter for incoming packets
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-15 12:25:58 +02:00
TheMode
164cf9fe2b Fix FireworkEffectMeta
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-15 04:44:34 +02:00
TheMode
1ad6caaf8b Add TagSerializer.fromCompound
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-15 03:50:57 +02:00
TheMode
5839ec71cc Make ItemMetaView.Builder extends ItemMeta.Builder
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-15 02:31:58 +02:00
Bloepiloepi
0c6da422c7
Add onGround to PlayerMoveEvent (#921) 2022-04-14 18:47:17 +02:00
TheMode
98a6e73e99 Improve memory usage of tags
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-14 16:26:57 +02:00
TheMode
821063addf Fix empty fork
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-14 01:32:54 +02:00
TheMode
e026a841ab Improve creation of item builder
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-14 00:50:19 +02:00
TheMode
83baabcbba Do not loop through parents if nothing has been removed
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-13 22:37:54 +02:00
TheMode
57832351ea Add pathInvalidClear
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-13 22:26:56 +02:00
TheMode
6c250de41c Fix OOB when clearing path-able tag entries
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-13 22:22:39 +02:00
Konstantin Shandurenko
d8cda624c8
PlayerDiggingListener fix (#918) 2022-04-13 22:03:25 +02:00
TheMode
b3030a3eb2 Fix PlayerHeadMeta
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-13 21:57:59 +02:00
TheMode
c9c2cc9ec8 Fix standalone view meta building
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-13 21:22:13 +02:00
Konstantin Shandurenko
f1606362b7
Stacking rule can be changed now (#916) 2022-04-13 20:42:09 +02:00
Konstantin Shandurenko
19eae7ef93
EntityTracker fix (#915) 2022-04-13 20:29:05 +02:00
TheMode
63b40deb34
Item API refactoring (#904) 2022-04-13 17:57:15 +02:00
TheMode
50a7d7ca81 ShapeImpl should not depend on the block material
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-13 12:07:43 +02:00
TheMode
59d5bfe6d1 Invalidate ChunkCache on unload
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 23:55:17 +02:00
TheMode
384126e3b4 Optimize block retrieval from Instance
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 23:50:45 +02:00
TheMode
c56cd1054a DiggingResult can become a record
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 23:38:15 +02:00
Konstantin Shandurenko
c4a4ebd51a
Check whether chunk is loaded on ClientPlayerDiggingPacket input (#910) 2022-04-12 23:37:29 +02:00
TheMode
f073cc46c8 Add Tag.UUID
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 19:16:11 +02:00
TheMode
3f172a8d2c Support Tag.Component and for record auto-structure
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 16:20:17 +02:00
TheMode
86526ab219 Simplify flow
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 14:14:36 +02:00
TheMode
6a79de2406 Final entry
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 12:18:00 +02:00
TheMode
0c9542486f Dedicated traversePath method
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-12 12:16:40 +02:00
TheMode
afbc6d6a47 Fix potential NPE
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-11 22:38:37 +02:00
TheMode
5812482922 Document GenerationUnit size guarantee
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-11 21:12:58 +02:00
Konstantin Shandurenko
2cea7ca5af
Async tasks cancellation fix (#907) 2022-04-11 20:26:59 +02:00
TheMode
1bb0af7f77 Add TagHandler#copy
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-10 15:49:33 +02:00