Search in sources :

Example 21 with S35PacketUpdateTileEntity

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);
}
Also used : S35PacketUpdateTileEntity(net.minecraft.network.play.server.S35PacketUpdateTileEntity) NBTTagCompound(net.minecraft.nbt.NBTTagCompound)

Example 22 with S35PacketUpdateTileEntity

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);
}
Also used : S35PacketUpdateTileEntity(net.minecraft.network.play.server.S35PacketUpdateTileEntity) NBTTagCompound(net.minecraft.nbt.NBTTagCompound)

Example 23 with S35PacketUpdateTileEntity

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);
}
Also used : S35PacketUpdateTileEntity(net.minecraft.network.play.server.S35PacketUpdateTileEntity) NBTTagCompound(net.minecraft.nbt.NBTTagCompound)

Example 24 with S35PacketUpdateTileEntity

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);
}
Also used : S35PacketUpdateTileEntity(net.minecraft.network.play.server.S35PacketUpdateTileEntity) NBTTagCompound(net.minecraft.nbt.NBTTagCompound)

Example 25 with S35PacketUpdateTileEntity

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);
}
Also used : S35PacketUpdateTileEntity(net.minecraft.network.play.server.S35PacketUpdateTileEntity) NBTTagCompound(net.minecraft.nbt.NBTTagCompound)

Aggregations

S35PacketUpdateTileEntity (net.minecraft.network.play.server.S35PacketUpdateTileEntity)40 NBTTagCompound (net.minecraft.nbt.NBTTagCompound)39 Entity (net.minecraft.entity.Entity)1 TileEntity (net.minecraft.tileentity.TileEntity)1 EntityDrone (pneumaticCraft.common.entity.living.EntityDrone)1