Search in sources :

Example 1 with S35PacketUpdateTileEntity

use of net.minecraft.network.play.server.S35PacketUpdateTileEntity in project BetterStorage by copygirl.

the class TileEntityCrate method getDescriptionPacket.

// TileEntity synchronization
@Override
public Packet getDescriptionPacket() {
    NBTTagCompound compound = new NBTTagCompound();
    compound.setInteger("crateId", id);
    return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 0, compound);
}
Also used : S35PacketUpdateTileEntity(net.minecraft.network.play.server.S35PacketUpdateTileEntity) NBTTagCompound(net.minecraft.nbt.NBTTagCompound)

Example 2 with S35PacketUpdateTileEntity

use of net.minecraft.network.play.server.S35PacketUpdateTileEntity in project BetterStorage by copygirl.

the class TileEntityPresent method getDescriptionPacket.

// Tile entity synchronization
@Override
public Packet getDescriptionPacket() {
    NBTTagCompound compound = new NBTTagCompound();
    if (color >= 0)
        compound.setInteger("color", color);
    compound.setByte(TAG_COLOR_INNER, (byte) colorInner);
    compound.setByte(TAG_COLOR_OUTER, (byte) colorOuter);
    compound.setBoolean(TAG_SKOJANZA_MODE, skojanzaMode);
    if (nameTag != null)
        compound.setString(TAG_NAMETAG, nameTag);
    return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 0, compound);
}
Also used : S35PacketUpdateTileEntity(net.minecraft.network.play.server.S35PacketUpdateTileEntity) NBTTagCompound(net.minecraft.nbt.NBTTagCompound)

Example 3 with S35PacketUpdateTileEntity

use of net.minecraft.network.play.server.S35PacketUpdateTileEntity in project BetterStorage by copygirl.

the class TileEntityArmorStand method getDescriptionPacket.

// TileEntity synchronization
@Override
public Packet getDescriptionPacket() {
    NBTTagCompound compound = new NBTTagCompound();
    write(compound);
    return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 0, compound);
}
Also used : S35PacketUpdateTileEntity(net.minecraft.network.play.server.S35PacketUpdateTileEntity) NBTTagCompound(net.minecraft.nbt.NBTTagCompound)

Example 4 with S35PacketUpdateTileEntity

use of net.minecraft.network.play.server.S35PacketUpdateTileEntity in project PneumaticCraft by MineMaarten.

the class TileThaumcraft method getDescriptionPacket.

//Client Packet stuff
@Override
public Packet getDescriptionPacket() {
    NBTTagCompound nbttagcompound = new NBTTagCompound();
    this.writeCustomNBT(nbttagcompound);
    return new S35PacketUpdateTileEntity(this.xCoord, this.yCoord, this.zCoord, -999, nbttagcompound);
}
Also used : S35PacketUpdateTileEntity(net.minecraft.network.play.server.S35PacketUpdateTileEntity) NBTTagCompound(net.minecraft.nbt.NBTTagCompound)

Example 5 with S35PacketUpdateTileEntity

use of net.minecraft.network.play.server.S35PacketUpdateTileEntity in project PneumaticCraft by MineMaarten.

the class TileEntityDroneInterface method onDataPacket.

@Override
public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt) {
    Entity entity = worldObj.getEntityByID(pkt.func_148857_g().getInteger("drone"));
    drone = entity instanceof EntityDrone ? (EntityDrone) entity : null;
}
Also used : S35PacketUpdateTileEntity(net.minecraft.network.play.server.S35PacketUpdateTileEntity) Entity(net.minecraft.entity.Entity) TileEntity(net.minecraft.tileentity.TileEntity) EntityDrone(pneumaticCraft.common.entity.living.EntityDrone)

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