Example #1
0
 public RightClickPacket(int x, byte y, int z,
     byte direction, Slot heldItem, byte cursorX,
     byte cursorY, byte cursorZ)
 {
     X = x;
     Y = y;
     Z = z;
     Direction = direction;
     HeldItem = heldItem;
     CursorX = cursorX;
     CursorY = cursorY;
     CursorZ = cursorZ;
 }
Example #2
0
 public void ReadPacket(MinecraftStream stream)
 {
     X = stream.ReadInt32();
     Y = stream.ReadUInt8();
     Z = stream.ReadInt32();
     Direction = stream.ReadUInt8();
     HeldItem = Slot.FromStream(stream);
     CursorX = stream.ReadUInt8();
     CursorY = stream.ReadUInt8();
     CursorZ = stream.ReadUInt8();
 }
Example #3
0
 public CreativeInventoryActionPacket(short slotIndex, Slot item)
 {
     SlotIndex = slotIndex;
     Item = item;
 }
Example #4
0
 public void ReadPacket(MinecraftStream stream)
 {
     SlotIndex = stream.ReadInt16();
     Item = Slot.FromStream(stream);
 }
Example #5
0
 public void ReadPacket(MinecraftStream stream)
 {
     WindowId = stream.ReadUInt8();
     SlotIndex = stream.ReadInt16();
     Item = Slot.FromStream(stream);
 }
Example #6
0
 public SetWindowItemsPacket(byte windowId, Slot[] items)
 {
     WindowId = windowId;
     Items = items;
 }
Example #7
0
 public SetSlotPacket(byte windowId, short slotIndex, Slot item)
 {
     WindowId = windowId;
     SlotIndex = slotIndex;
     Item = item;
 }
Example #8
0
 public void ReadPacket(MinecraftStream stream)
 {
     WindowId = stream.ReadUInt8();
     SlotIndex = stream.ReadInt16();
     MouseButton = stream.ReadUInt8();
     ActionNumber = stream.ReadInt16();
     Shift = stream.ReadBoolean();
     ClickedItem = Slot.FromStream(stream);
 }
Example #9
0
 public ClickWindowPacket(byte windowId, short slotIndex, byte mouseButton,
     short actionNumber, bool shift, Slot clickedItem)
 {
     WindowId = windowId;
     SlotIndex = slotIndex;
     MouseButton = mouseButton;
     ActionNumber = actionNumber;
     Shift = shift;
     ClickedItem = clickedItem;
 }
Example #10
0
 public void ReadPacket(MinecraftStream stream)
 {
     EntityId = stream.ReadInt32();
     SlotIndex = (EntityEquipmentSlot)stream.ReadInt16();
     Slot = Slot.FromStream(stream);
 }
Example #11
0
 public EntityEquipmentPacket(int entityId, EntityEquipmentSlot slotIndex, Slot slot)
 {
     EntityId = entityId;
     SlotIndex = slotIndex;
     Slot = slot;
 }