Commit Graph

3058 Commits

Author SHA1 Message Date
TheMode
f47159d131 Add EventNode#setPriority 2021-06-08 13:47:10 +02:00
TheMode
cf1e5222ca Fix rebase 2021-06-08 13:05:12 +02:00
TheMode
7c2d07b911 Merge branch 'master' into event-api
# Conflicts:
#	src/main/java/net/minestom/server/listener/UseItemListener.java
2021-06-08 13:03:01 +02:00
TheMode
73abe7a4d7
Merge pull request #313 from Minestom/fix-potion-ids
Fix potion effect IDs.
2021-06-07 19:37:06 +02:00
Articdive
b0a991773a
Make sure we stay in the potion ID range. 2021-06-07 17:36:29 +02:00
Articdive
a24c08ead9
Fix potion effect IDs. 2021-06-07 17:23:31 +02:00
TheMode
1aa9343dfc
Merge pull request #311 from Minestom/fix-data
Remove git submodule and gradle copy task.
2021-06-06 15:08:16 +02:00
Articdive
b52752653b
Fix jitpack build (hopefully) 2021-06-06 14:54:01 +02:00
Articdive
9165e19c30
Remove git submodule and gradle copy task. 2021-06-06 14:22:32 +02:00
TheMode
3e73ec5646 Properly unescape displayname & lore 2021-06-06 14:21:25 +02:00
TheMode
aee429add3
Merge pull request #309 from Minestom/new-data-preperation-1.17
Use minestom-data to generate our enums.
2021-06-06 10:44:59 +02:00
Articdive
d000684963
Merge remote-tracking branch 'upstream/new-data-preperation-1.17' into new-data-1.17 2021-06-06 08:26:45 +02:00
Articdive
d66240d7f3
Add a small failsafe for entity metadata. 2021-06-06 08:26:16 +02:00
TheMode
c930eed412 propagate listener changes to parents 2021-06-06 07:55:30 +02:00
TheMode
9594d848bc Use for-each loops during event calling 2021-06-06 07:34:33 +02:00
TheMode
180a3fa898 Improve event calling performance, reduce memory footprint 2021-06-06 07:28:07 +02:00
TheMode
cec08fae1f Replace target string only once 2021-06-06 06:35:19 +02:00
TheMode
641ca02120 Formatting 2021-06-06 04:48:43 +02:00
TheMode
5085f8fa58 Fix build 2021-06-06 04:26:45 +02:00
TheMode
3dfd4678d5 Add PlayerPacketEvent 2021-06-05 01:04:51 +02:00
TheMode
5d8ed5041f Use AtomicReferenceFieldUpdater to update the tick context 2021-06-04 22:30:35 +02:00
TheMode
25f1183a1b Remove EventNode#map 2021-06-04 21:12:27 +02:00
Articdive
3cefbc2627
Copy data from submodule into resources. 2021-06-04 15:19:01 +02:00
Articdive
4dda011c1f
Replace prismarine-data submodule with minestom-data submodule 2021-06-04 15:13:29 +02:00
TheMode
2872a25325 Improve redirection performance 2021-06-04 10:07:46 +02:00
TheMode
b979c9b624 Temporary fix for mapped object 2021-06-04 09:50:26 +02:00
Articdive
8445898663
Remove jang lang import. 2021-06-04 08:51:40 +02:00
Articdive
c2fd4ace93
Attempt to reduce diff in states. 2021-06-04 08:49:01 +02:00
Articdive
be649146ed
Remove states that only had 1 state. 2021-06-04 08:36:22 +02:00
TheMode
030e5b6857 Create #addListener0 to ensure proper stacktrace when adding a listener 2021-06-04 07:45:15 +02:00
TheMode
a5a2a71d69 Replace deprecated methods, showcase how to append to the global node 2021-06-04 07:37:13 +02:00
TheMode
d9b26f84d3 Keep using GlobalEventHandler 2021-06-04 04:54:07 +02:00
TheMode
a585e4e45b Improve event calling performance 2021-06-04 04:39:45 +02:00
TheMode
80c6bb3fa5 Deprecate GlobalEventHandler 2021-06-04 04:24:25 +02:00
TheMode
f39fc8c81e Fast exit when a node as no child 2021-06-04 04:14:41 +02:00
TheMode
c4d521cde5 All node should have a name 2021-06-04 04:10:13 +02:00
TheMode
d81df24132 Support old EventHandler API 2021-06-04 04:05:57 +02:00
TheMode
8b255651ab Call events using EventDispatcher 2021-06-04 03:48:51 +02:00
TheMode
5d3bae3d7f Make some events implement ItemEvent 2021-06-04 00:54:36 +02:00
TheMode
f1ddedfb44 Add EventNode#getParent 2021-06-04 00:30:48 +02:00
TheMode
94e315e3b2 Rename predicate to type 2021-06-03 21:59:27 +02:00
TheMode
5aa8d95ed9 Remove debug print 2021-06-03 21:54:42 +02:00
TheMode
734e6f5bcb Remove predicate from the EventNode factory methods 2021-06-03 21:54:07 +02:00
TheMode
a15717ae49 Remove unnecessary generic 2021-06-03 21:41:28 +02:00
TheMode
9177e94d1b Allow node predicate based on tag 2021-06-03 21:39:38 +02:00
TheMode
27bdbe7275 Rename removeMap to unmap 2021-06-03 20:59:05 +02:00
TheMode
81e2072bc5 Add shortcut to add listener 2021-06-03 20:46:11 +02:00
TheMode
03ff75f685
Merge pull request #304 from Bloepiloepi/food-fix
Food animation fix
2021-06-03 19:17:49 +02:00
Articdive
993fc231b2
Use correct folder in .gitignore 2021-06-03 12:17:58 +02:00
Articdive
105f2fdc7e
Use minestom-data to generate our enums. 2021-06-03 12:11:42 +02:00