Commit Graph

393 Commits

Author SHA1 Message Date
TheMode
19bb23fe3d callCancellable style
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-25 11:24:36 +02:00
Dominik Strebinger
58b6e90142
Add PlayerInstanceEvent (#1135) 2022-05-29 20:42:45 +02:00
Michael
7b8445d0e2
Add EditBookEvent (#1120) 2022-05-24 14:08:00 +10:00
DasLixou
e2dac1c46e
Made EatEvents ItemEvents (#965) 2022-04-23 19:26:22 +02:00
Bloepiloepi
0c6da422c7
Add onGround to PlayerMoveEvent (#921) 2022-04-14 18:47:17 +02:00
Konstantin Shandurenko
b3ee3e2345
EntityProjectile fixes and optimizations (#807) 2022-03-28 22:06:25 +02:00
TheMode
131116013d Event nodes need total order
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-26 12:02:36 +01:00
themode
a689691873 Unnecessary fences 2022-03-26 11:44:40 +01:00
TheMode
daf83a25d1 Add some event node query tests
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-26 10:13:43 +01:00
themode
edabb19891 Explicit fences 2022-03-25 10:12:04 +01:00
themode
2f6e3b62b0 Registration cleanup 2022-03-06 09:06:59 +01:00
TheMode
0f8f1f9906
Unique node mapping (#737) 2022-03-06 07:29:51 +01:00
themode
cccbd98a3a Do not prevent entity gc if a local listener is added 2022-03-05 17:38:27 +01:00
TheMode
1bea4848ac
Local node (#734) 2022-03-05 17:01:10 +01:00
TheMode
cc69fcf05a
Revert "Local node support (#688)" (#733)
This reverts commit 0cb2600929.
2022-03-05 12:06:59 +01:00
TheMode
0cb2600929
Local node support (#688) 2022-03-05 11:11:39 +01:00
themode
5b3cb709d6 Use ClassValue to store event handles 2022-02-23 00:02:11 +01:00
TheMode
9b04e89552
Add PlayerPacketOutEvent (#689) 2022-02-17 13:51:55 +01:00
themode
2438393ce1 Remove GlobalHandles for better testability 2022-02-13 12:34:27 +01:00
TheMode
a2b1148343 Make EventNode#toString return a graph of the current node state
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-02 15:41:11 +01:00
TheMode
e0e5fe049d Remove deprecated ResponseDataConsumer, add support for unix domain socket
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-25 01:38:18 +01:00
TheMode
5bbf4642e8 Server process (#550) 2022-01-10 16:51:21 +01:00
themode
de817e5e52 Use acquire/release for node updating 2022-01-10 16:51:21 +01:00
Mrln
78076e9bc8 Make PlayerUseItemOnBlockEvent.getBlockFace() return a BlockFace (#555) 2022-01-10 16:51:21 +01:00
Bloepiloepi
1a7fece34e Add sound and animation to damage event (#506) 2022-01-10 16:51:21 +01:00
themode
68f19e3dae Add test for node mapping 2022-01-10 16:51:21 +01:00
themode
f1a4f002c3 Reuse local booleans for readability 2022-01-10 16:51:21 +01:00
KrystilizeNevaDies
6cc0ade409
Fix naming issue 2021-12-23 04:18:52 +10:00
TheMode
08f9b065de Cache handle for PlayerChunkUnloadEvent
Signed-off-by: TheMode <themode@outlook.fr>
2021-11-02 01:54:48 +01:00
TheMode
faa289a097
Entity tracking rework (#486) 2021-11-01 18:04:00 +01:00
TheMode
b308ce5baa
Update to Java 17 (#462) 2021-10-22 01:55:55 +02:00
TheMode
45071cebd8
Add EntityInstanceEvent (#480) 2021-10-06 20:40:17 +02:00
Шандуренко Константин Владимирович
6c4eda3bb7 Chunk-related improvements 2021-09-07 19:24:24 +03:00
Шандуренко Константин Владимирович
2634042f7d InventoryItemChangeEvent is now recursive and not it's PlayerInventory-based child 2021-09-06 20:27:11 +03:00
Шандуренко Константин Владимирович
5db56312f7 Code review 2021-09-06 20:23:37 +03:00
Шандуренко Константин Владимирович
8a04d7eed9 InventoryItemChangeEvent 2021-09-06 19:59:55 +03:00
TheMode
8cbd6460f4 Cleanup...
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-05 03:40:30 +02:00
TheMode
ae04ca5574 More comments for ListenerHandle 2021-08-30 12:33:09 +02:00
TheMode
a92ac203f7 Style cleanup 2021-08-29 17:11:10 +02:00
TheMode
61d19243f7 Fix event expiration 2021-08-29 12:50:44 +02:00
TheMode
8b61ead08e Fix parent filtering 2021-08-29 12:25:57 +02:00
TheMode
0a3ad69e58 Ensure listeners being up to date 2021-08-29 01:03:09 +02:00
TheMode
4680dbd64e Reuse call method for mapped nodes
Signed-off-by: TheMode <themode@outlook.fr>
2021-08-27 09:55:10 +02:00
TheMode
5c9c57439a Prevent node update from being called multiple times
Signed-off-by: TheMode <themode@outlook.fr>
2021-08-27 09:51:36 +02:00
TheMode
66681c5caf Use an array for filtering 2021-08-26 14:25:13 +02:00
TheMode
d56479d316 Ensure that child also invalidate events
Signed-off-by: TheMode <themode@outlook.fr>
2021-08-26 13:24:16 +02:00
TheMode
5ddd97cee2 Move optimized event calling inside ListenerHandle 2021-08-24 15:35:09 +02:00
TheMode
aed441123e Marks some methods as experimental 2021-08-24 15:25:11 +02:00
TheMode
93cbd52313 Use arrays instead of lists for loops 2021-08-24 15:12:39 +02:00
TheMode
5e27399815 Fix event propagation on self 2021-08-24 11:49:57 +02:00