Commit Graph

1372 Commits

Author SHA1 Message Date
Felix Cravic
2f96a47270 Optimise GlobalEventHandler 2020-12-11 19:37:44 +01:00
Felix Cravic
ac8ba3ab10 Fixed ItemDropEvent and PickupItemEvent constructor + changed PlayerInit event registration to use the global event handler 2020-12-11 04:34:08 +01:00
Felix Cravic
62ab0a2007 Remove unnecessary shouldUpdate method in Entity 2020-12-10 18:12:05 +01:00
Felix Cravic
30a7843018 Added #flush in comment 2020-12-10 00:08:35 +01:00
Felix Cravic
654a68092a Simply MainDemo 2020-12-09 22:38:20 +01:00
Felix Cravic
54d3a6bace fixed GlobalEventHandler getter name 2020-12-09 22:36:15 +01:00
Felix Cravic
6e3df970fa Added GlobalEventHandler 2020-12-09 22:31:20 +01:00
Felix Cravic
30d257c847 Remove unnecessary #callEvent override in Entity 2020-12-09 22:18:11 +01:00
Felix Cravic
08f7b1c715 Event callback collections now use a set, and #add/removeCallback return a boolean to know if the action was successful 2020-12-09 22:05:11 +01:00
Felix Cravic
f7c05a445e Remove #copy 2020-12-09 21:34:53 +01:00
Felix Cravic
f39f6444d7 PublicCloneable and support for ItemMeta#clone 2020-12-09 21:15:02 +01:00
Felix Cravic
cea3b8b593 WIP removal of #copy for #clone 2020-12-09 20:51:40 +01:00
KrystilizeNevaDies
f54dc4efe5
Style fixes + Imports 2020-12-10 01:10:46 +10:00
CmdrNorthpaw
df536f9aaf
Function in CommandSender to send ColoredText (#75)
* Send ColoredText messages to CommandSender

* Only send ColoredText if this is a player

* Documentation!
2020-12-10 01:09:29 +10:00
TheMode
ea3021ea69 Console command doesnt need to start with the command prefix
Signed-off-by: TheMode <themode@outlook.fr>
2020-12-09 06:30:15 +01:00
Felix Cravic
5576d11fce Do not wait for worker thread shutdown 2020-12-08 18:14:10 +01:00
Felix Cravic
91a000ab31 heap buffers don't need to be released manually 2020-12-08 09:49:29 +01:00
Felix Cravic
b307a979c3 Added NotNull annotation for Sidebar 2020-12-08 09:39:51 +01:00
Felix Cravic
42cedf3fbf Use Guava to initialize concurrent linked queues 2020-12-08 09:36:19 +01:00
Felix Cravic
fec23a9783 Improve grouped packet performance 2020-12-08 09:13:22 +01:00
Felix Cravic
91dc4eb675 Remove unnecessary synchronized blocks 2020-12-08 03:37:00 +01:00
Felix Cravic
eca6a657c3 Execute InstanceTickEvent in Instance instead of InstanceContainer 2020-12-08 00:16:46 +01:00
Felix Cravic
c836bbc051 Merge remote-tracking branch 'origin/master' 2020-12-08 00:13:24 +01:00
Felix Cravic
716e2ea5ef Remove unnecessary synchronized block and allow for custom drop amount 2020-12-08 00:12:49 +01:00
KrystilizeNevaDies
061c1600e7 Annotation and type fix
Just clean up annotations on primatives and instance v InstanceContainer
2020-12-08 09:12:42 +10:00
Felix Cravic
99f4c8f2d3 No item copy when swapping item hand 2020-12-08 00:08:27 +01:00
Felix Cravic
0de69ae2ad Merge remote-tracking branch 'origin/master' 2020-12-07 23:58:34 +01:00
Felix Cravic
ff4580c41b Prevent unnecessary item copy during drop 2020-12-07 23:57:57 +01:00
KrystilizeNevaDies
e8e30b1328 Fix first tick call 2020-12-08 07:52:46 +10:00
KrystilizeNevaDies
6cc8946963 Add instance tick event 2020-12-08 07:30:14 +10:00
Felix Cravic
40787902e3 Small demo code update 2020-12-06 20:20:05 +01:00
Felix Cravic
07990b26e9 Better comment for Entity#isAutoViewable 2020-12-06 20:11:14 +01:00
Felix Cravic
0f97930f79 Fix player gravity 2020-12-06 16:52:04 +01:00
Felix Cravic
43aca45c05 Fixed void promise on channel write 2020-12-06 05:52:36 +01:00
Felix Cravic
70000e75d5 Added gravity acceleration and terminal velocity (and an utils method to get the gravity tick count) 2020-12-06 01:36:37 +01:00
Felix Cravic
d5e5412309 Allow custom EntityCreature death animation time 2020-12-06 00:06:52 +01:00
Felix Cravic
3f487f4f4f Entity with scheduled removal still execute tick until complete removal, added some comments 2020-12-05 23:57:07 +01:00
Felix Cravic
8966cc7ec8 Merge remote-tracking branch 'origin/master' 2020-12-05 20:55:04 +01:00
Felix Cravic
a58dab4f34 Disable netty errors processing by default 2020-12-05 20:54:39 +01:00
R0bbyYT
a1ef2b21c3 The leather armor pieces are now correctly colored 2020-12-05 20:45:54 +01:00
Felix Cravic
e3f6b73241 NettyPlayerConnection.java#write and flush should return a ChannelFuture 2020-12-05 20:35:43 +01:00
LeoDog896
e6c314a5e5 Ignore kotlin in classloader 2020-12-05 11:44:18 -05:00
Felix Cravic
1f1bd348b5 Fix player teleport being teleported inside a block 2020-12-05 17:14:10 +01:00
Felix Cravic
3c0fa42758 Precision in the documentation, syntax argument count needs to be higher than 0 2020-12-05 16:19:54 +01:00
Felix Cravic
59b4b7996d Do not retrieve all chunks when teleporting in the same chunk 2020-12-05 16:16:25 +01:00
Felix Cravic
f7753ab447 #showPlayer cleanup 2020-12-05 16:09:08 +01:00
Felix Cravic
6bd6d22651 Added EntityCreature#switchEntityType 2020-12-05 01:36:06 +01:00
Felix Cravic
cd44732cbc Velocity cleanup 2020-12-04 19:19:30 +01:00
Felix Cravic
9b8579eaf4 Small cleanup 2020-12-04 18:25:24 +01:00
KrystilizeNevaDies
d6c0a24bed Add Vector & BlockPosition copyCoordinates 2020-12-04 15:17:25 +10:00