use of net.minecraft.network.play.server.S35PacketUpdateTileEntity in project SecurityCraft by Geforce132.
the class TileEntitySCTE method getDescriptionPacket.
public Packet getDescriptionPacket() {
NBTTagCompound tag = new NBTTagCompound();
this.writeToNBT(tag);
return new S35PacketUpdateTileEntity(pos, 1, tag);
}
use of net.minecraft.network.play.server.S35PacketUpdateTileEntity in project SecurityCraft by Geforce132.
the class TileEntityOwnable method getDescriptionPacket.
public Packet getDescriptionPacket() {
NBTTagCompound tag = new NBTTagCompound();
this.writeToNBT(tag);
return new S35PacketUpdateTileEntity(pos, 1, tag);
}
use of net.minecraft.network.play.server.S35PacketUpdateTileEntity in project BetterStorage by copygirl.
the class TileEntityBackpack method getDescriptionPacket.
// Tile entity synchronization
@Override
public Packet getDescriptionPacket() {
NBTTagCompound compound = new NBTTagCompound();
compound.setTag("stack", stack.writeToNBT(new NBTTagCompound()));
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 0, compound);
}
use of net.minecraft.network.play.server.S35PacketUpdateTileEntity in project BetterStorage by copygirl.
the class TileEntityLockableDoor method getDescriptionPacket.
@Override
public Packet getDescriptionPacket() {
NBTTagCompound compound = new NBTTagCompound();
compound.setBoolean("isOpen", isOpen);
compound.setBoolean("isMirrored", isMirrored);
compound.setByte("orientation", (byte) orientation.ordinal());
if (lockAttachment.getItem() != null)
compound.setTag("lock", lockAttachment.getItem().writeToNBT(new NBTTagCompound()));
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 0, compound);
}
use of net.minecraft.network.play.server.S35PacketUpdateTileEntity in project BluePower by Qmunity.
the class TileBase method getDescriptionPacket.
@Override
public Packet getDescriptionPacket() {
NBTTagCompound tCompound = new NBTTagCompound();
writeToPacketNBT(tCompound);
return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 0, tCompound);
}
Aggregations