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; }
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(); }
public CreativeInventoryActionPacket(short slotIndex, Slot item) { SlotIndex = slotIndex; Item = item; }
public void ReadPacket(MinecraftStream stream) { SlotIndex = stream.ReadInt16(); Item = Slot.FromStream(stream); }
public void ReadPacket(MinecraftStream stream) { WindowId = stream.ReadUInt8(); SlotIndex = stream.ReadInt16(); Item = Slot.FromStream(stream); }
public SetWindowItemsPacket(byte windowId, Slot[] items) { WindowId = windowId; Items = items; }
public SetSlotPacket(byte windowId, short slotIndex, Slot item) { WindowId = windowId; SlotIndex = slotIndex; Item = item; }
public void ReadPacket(MinecraftStream stream) { WindowId = stream.ReadUInt8(); SlotIndex = stream.ReadInt16(); MouseButton = stream.ReadUInt8(); ActionNumber = stream.ReadInt16(); Shift = stream.ReadBoolean(); ClickedItem = Slot.FromStream(stream); }
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; }
public void ReadPacket(MinecraftStream stream) { EntityId = stream.ReadInt32(); SlotIndex = (EntityEquipmentSlot)stream.ReadInt16(); Slot = Slot.FromStream(stream); }
public EntityEquipmentPacket(int entityId, EntityEquipmentSlot slotIndex, Slot slot) { EntityId = entityId; SlotIndex = slotIndex; Slot = slot; }