Commit Graph

109 Commits

Author SHA1 Message Date
James Puleo 3f60ffd1ef Track the players selected slot index with PacketPlayInHeldItemChange,
and allow changing of a players selected slot with
PacketPlayOutHeldItemChange.

Also introduces an event that can be used to change or cancel a player's
selected slot change.

I tried to follow the style and mannerisms of existing code, but what's
up with the Unsafe class? The class is okay, but why are the methods
named as such? Having all the methods named 'a' will be sure to cause
conflict once two methods take the same parameters.
2021-02-22 01:54:26 -05:00
James Puleo 00af9afe43 Reduce code duplication, tell client about new position if an event
handler used setTo
2021-02-22 00:40:08 -05:00
LOOHP 48cd3a8b9a UTF-8 when saving FileConfiguration 2021-02-21 14:58:05 +08:00
LOOHP 9fe48fc2a9 Use Java 8 Methods 2021-02-21 14:44:59 +08:00
LOOHP 6013235c73 Fixed resource not closing 2021-02-20 18:12:11 +08:00
LOOHP 8d2b7ea0cb 0.4.0 SNAPSHOT 2021-02-19 23:33:21 +08:00
LOOHP aeac3730ac Updated to 1.16.5 2021-01-16 11:08:43 +08:00
LOOHP 1040e75ca9 Do not stop server when receving unknown flags 2021-01-02 14:21:00 +08:00
LOOHP c77c700fac Reorganize sources to maven project standard 2020-12-29 01:50:43 +08:00