Beispiel #1
0
 public UseItemOnEntityData(InventoryTransactionPacket pk)
 {
     this.EntityRuntimeId = pk.ReadEntityRuntimeId();
     this.ActionType      = (int)pk.ReadUVarInt();
     this.HotbarSlot      = pk.ReadSVarInt();
     this.ItemMainHand    = pk.ReadItem();
     this.PlayerPos       = pk.ReadVector3();
     this.ClickPos        = pk.ReadVector3();
 }
 public UseItemData(InventoryTransactionPacket pk)
 {
     this.ActionType   = (int)pk.ReadUVarInt();
     this.BlockPos     = (Vector3i)pk.ReadBlockVector3();
     this.Face         = pk.ReadBlockFace();
     this.HotbarSlot   = pk.ReadSVarInt();
     this.ItemMainHand = pk.ReadItem();
     this.PlayerPos    = pk.ReadVector3();
     this.ClickPos     = pk.ReadVector3();
 }
Beispiel #3
0
 public ReleaseItemData(InventoryTransactionPacket pk)
 {
     this.ActionType   = (int)pk.ReadUVarInt();
     this.HotbarSlot   = pk.ReadSVarInt();
     this.MainHandItem = pk.ReadItem();
     this.HeadRot      = pk.ReadVector3();
 }