public EntityEquipmentPacket(int entityId, EntityEquipmentSlot slot, Slot item) { EntityId = entityId; SlotIndex = (short)slot; Item = item; if (slot == 0 && item.Id != 0xFFFF) item.Id = 0xFFFF; }
public IPacket ReadPacket(IMinecraftDataReader reader) { EntityID = reader.ReadVarInt(); Slot = (EntityEquipmentSlot) reader.ReadShort(); Item = ItemStack.FromReader(reader); return this; }
public IPacket ReadPacket(IMinecraftDataReader reader) { EntityID = reader.ReadVarInt(); Slot = (EntityEquipmentSlot)reader.ReadShort(); Item = ItemStack.FromReader(reader); return(this); }
public void ReadPacket(MinecraftStream stream) { EntityId = stream.ReadInt32(); SlotIndex = (EntityEquipmentSlot)stream.ReadInt16(); Slot = ItemStack.FromStream(stream); }
public EntityEquipmentPacket(int entityId, EntityEquipmentSlot slotIndex, ItemStack slot) { EntityId = entityId; SlotIndex = slotIndex; Slot = slot; }
public NetworkMode ReadPacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { EntityId = stream.ReadVarInt(); Slot = (EntityEquipmentSlot)stream.ReadInt16(); Item = ItemStack.FromStream(stream); return mode; }
public EntityEquipmentPacket(int entityId, EntityEquipmentSlot slot, ItemStack item) { EntityId = entityId; Slot = slot; Item = item; }
public EntityEquipmentPacket(int entityId, EntityEquipmentSlot slot, Slot item) { EntityId = entityId; SlotIndex = (short)slot; Item = item; }