Commit Graph

418 Commits

Author SHA1 Message Date
GreatWyrm
6f6a54857e Update block interact event, and add some clarifying Javadocs on what blockItemUse method does (#102)
(cherry picked from commit dfe892aa1a)
2024-02-09 14:27:43 -05:00
mworzala
d72e56b4be fix: begin join game sequence only after client acks configuration finish
(cherry picked from commit 197daae608)
2024-02-09 14:27:43 -05:00
mworzala
5caffb134c feat: add AsyncPlayerConfigurationEvent, remove PlayerLoginEvent
(cherry picked from commit 1161fbf1b1)
2024-02-09 14:27:43 -05:00
mworzala
9439b62ff0 chore: port DamageType cleanup change from MelonHell 1.19.4 PR
(cherry picked from commit 9eab3d4f8b)
2024-02-09 14:27:43 -05:00
mworzala
2f85ce0231 stable configuration state join
(cherry picked from commit 465af0e051)
2024-02-09 14:27:43 -05:00
Samuel
b1b33b9df8 hollow-cube/entity-despawn-hooks (#63)
* Add Entity::despawn

* Clarify that despawn() is not at risk of being ignored

* Make despawn() protected

(cherry picked from commit 9e27053b15)
2024-02-09 14:27:43 -05:00
mworzala
351d2197b1 collect all server options in ServerFlag file, other minor changes 2024-02-09 14:27:43 -05:00
Matt Worzala
ccb7a81dc9 hollow-cube/fix-riptide-animation (#44)
Co-authored-by: TogAr2 <59421074+TogAr2@users.noreply.github.com>
(cherry picked from commit d901eaaed1)
2024-02-09 14:27:43 -05:00
Matt Worzala
edf7b870c7 hollow-cube/add-gamemodechangeevent-and-fix-game-profile (#43)
* Resolve some todos and add connection.setProfile to EncryptionResponsePacket

* Add PlayerGameModeChangeEvent

(cherry picked from commit 1514d8ac1f)

* Add unit tests

(cherry picked from commit 9685e74f3b)

---------

Co-authored-by: GreatWyrm <alecmusante@gmail.com>
Co-authored-by: NxDs <7994264+NxDs@users.noreply.github.com>
(cherry picked from commit 2c567696ac)
2024-02-09 14:27:43 -05:00
mworzala
bb6a93da89 hollow-cube/prevent-block-updates
(cherry picked from commit 55a1349049)
2024-02-09 14:27:43 -05:00
mworzala
351000e2cb hollow-cube/multiple-event-node-parents
Signed-off-by: mworzala <mattheworzala@gmail.com>

add `minestom.event.multiple-parents`

(cherry picked from commit 26b79904a6fcbce2459d12ae8165d47dd2c8f1b3)

(cherry picked from commit 560b5cb52d)
2024-02-09 14:27:43 -05:00
Zak Shearman
a0929db8b0
Copy javadocs for PlayerBlockIteractEvent#setBlockingItemUse (#1814) 2023-05-13 22:41:02 +10:00
Not Flamgop
01ffec6614
Add Cancel and Finish digging events (#1846)
* Add Cancel and Finish digging events

* Add a function for setting the block which was dug in PlayerFinishDiggingEvent.java
2023-05-12 19:15:49 +10:00
iam
79ce9570ea
Allow event node handle to be garbage collected (#1835) 2023-04-23 13:07:40 +02:00
EpicPlayerA10
4f3c35ee87
Instance register and unregister events (#608)
* Added InstanceRegisterEvent and InstanceUnregisterEvent

* Add unit test
2023-03-31 07:35:24 +10:00
emortaldev
c995f9c3a9
Block event changes (#1675)
* Add cursor position to interact events

* Add block face to digging events

* Expose interact position in interact event
2023-01-16 18:57:18 -05:00
HEROOSTECH
f291437ada
Hand in PlayerItemAnimationEvent (#1650)
* Hand in PlayerItemAnimationEvent

* Hand in PlayerItemAnimationEvent
2023-01-03 19:11:17 -05:00
Huynh Tien
93718276c5
Strong Ref for child EventNode (#1491) 2022-10-29 12:33:24 +02:00
TheMode
c3df2af306 Unused EventCallback
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-28 11:03:24 +02:00
TheMode
e11d15af0d Fix event node child/map leak
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-27 22:32:22 +02:00
TheMode
b4af87b8a4 Fix event node leak
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-27 21:02:27 +02:00
TheMode
c95ced9493 Misc intellij suggestions
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-27 15:25:51 +02:00
Koding
18c46481f4
Fix incorrect functionality of ClientSpectatePacket (#1402) 2022-09-14 13:44:43 +02:00
TheMode
fc90fe8852 Remove some Collections usage
Signed-off-by: TheMode <themode@outlook.fr>
2022-09-06 15:08:36 +02:00
TheMode
1bf750a603 Make PlayerPacketOutEvent cancellable
Signed-off-by: TheMode <themode@outlook.fr>
2022-07-07 18:12:54 +02:00
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