1
0
mirror of https://github.com/LOOHP/Limbo.git synced 2026-06-07 21:41:43 +00:00

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.
This commit is contained in:
James Puleo
2021-02-22 01:29:46 -05:00
parent 48cd3a8b9a
commit 3f60ffd1ef
8 changed files with 134 additions and 6 deletions
+4 -2
View File
@@ -18,7 +18,8 @@
"0x12": "PacketPlayInPosition",
"0x14": "PacketPlayInRotation",
"0x0B": "PacketPlayInPluginMessaging",
"0x06": "PacketPlayInTabComplete"
"0x06": "PacketPlayInTabComplete",
"0x25": "PacketPlayInHeldItemChange"
},
"PlayOut": {
"PacketPlayOutLogin": "0x24",
@@ -41,7 +42,8 @@
"PacketPlayOutEntityDestroy": "0x36",
"PacketPlayOutEntityMetadata": "0x44",
"PacketPlayOutSpawnEntity": "0x00",
"PacketPlayOutSpawnEntityLiving": "0x02"
"PacketPlayOutSpawnEntityLiving": "0x02",
"PacketPlayOutHeldItemChange": "0x3F"
},
"StatusIn": {
"0x01": "PacketStatusInPing",