Search in sources :

Example 11 with S35PacketUpdateTileEntity

use of net.minecraft.network.play.server.S35PacketUpdateTileEntity in project ArsMagica2 by Mithion.

the class TileEntityKeystoneRecepticle method getDescriptionPacket.

@Override
public Packet getDescriptionPacket() {
    NBTTagCompound compound = new NBTTagCompound();
    this.writeToNBT(compound);
    S35PacketUpdateTileEntity packet = new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, worldObj.getBlockMetadata(xCoord, yCoord, zCoord), compound);
    return packet;
}
Also used : S35PacketUpdateTileEntity(net.minecraft.network.play.server.S35PacketUpdateTileEntity) NBTTagCompound(net.minecraft.nbt.NBTTagCompound)

Example 12 with S35PacketUpdateTileEntity

use of net.minecraft.network.play.server.S35PacketUpdateTileEntity in project ArsMagica2 by Mithion.

the class TileEntityLectern method getDescriptionPacket.

@Override
public Packet getDescriptionPacket() {
    NBTTagCompound compound = new NBTTagCompound();
    writeToNBT(compound);
    S35PacketUpdateTileEntity packet = new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, worldObj.getBlockMetadata(xCoord, yCoord, zCoord), compound);
    return packet;
}
Also used : S35PacketUpdateTileEntity(net.minecraft.network.play.server.S35PacketUpdateTileEntity) NBTTagCompound(net.minecraft.nbt.NBTTagCompound)

Example 13 with S35PacketUpdateTileEntity

use of net.minecraft.network.play.server.S35PacketUpdateTileEntity in project ArsMagica2 by Mithion.

the class TileEntityMagiciansWorkbench method getDescriptionPacket.

@Override
public Packet getDescriptionPacket() {
    NBTTagCompound compound = new NBTTagCompound();
    this.writeToNBT(compound);
    S35PacketUpdateTileEntity packet = new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, worldObj.getBlockMetadata(xCoord, yCoord, zCoord), compound);
    return packet;
}
Also used : S35PacketUpdateTileEntity(net.minecraft.network.play.server.S35PacketUpdateTileEntity) NBTTagCompound(net.minecraft.nbt.NBTTagCompound)

Example 14 with S35PacketUpdateTileEntity

use of net.minecraft.network.play.server.S35PacketUpdateTileEntity in project NewHorizonsCoreMod by GTNewHorizons.

the class TileEntityBabyChest method getDescriptionPacket.

@Override
public Packet getDescriptionPacket() {
    NBTTagCompound syncData = new NBTTagCompound();
    writeSyncedNBT(syncData);
    return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, syncData);
}
Also used : S35PacketUpdateTileEntity(net.minecraft.network.play.server.S35PacketUpdateTileEntity) NBTTagCompound(net.minecraft.nbt.NBTTagCompound)

Example 15 with S35PacketUpdateTileEntity

use of net.minecraft.network.play.server.S35PacketUpdateTileEntity in project SecurityCraft by Geforce132.

the class CustomizableSCTE method getDescriptionPacket.

public Packet getDescriptionPacket() {
    NBTTagCompound tag = new NBTTagCompound();
    this.writeToNBT(tag);
    return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);
}
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