Esempio n. 1
0
 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);
        }
Esempio n. 4
0
 public void ReadPacket(MinecraftStream stream)
 {
     EntityId = stream.ReadInt32();
     SlotIndex = (EntityEquipmentSlot)stream.ReadInt16();
     Slot = ItemStack.FromStream(stream);
 }
Esempio n. 5
0
 public EntityEquipmentPacket(int entityId, EntityEquipmentSlot slotIndex, ItemStack slot)
 {
     EntityId = entityId;
     SlotIndex = slotIndex;
     Slot = slot;
 }
Esempio n. 6
0
 public NetworkMode ReadPacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) {
     EntityId = stream.ReadVarInt();
     Slot = (EntityEquipmentSlot)stream.ReadInt16();
     Item = ItemStack.FromStream(stream);
     return mode;
 }
Esempio n. 7
0
 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;
 }