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);
}
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);
}
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);
}
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);
}
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;
}
Aggregations