use of net.minecraft.network.play.server.SPacketUpdateTileEntity in project Pearcel-Mod by MiningMark48.
the class TileEntityPearcelGenerator method getUpdatePacket.
@Override
public SPacketUpdateTileEntity getUpdatePacket() {
NBTTagCompound compound = new NBTTagCompound();
this.writeToNBT(compound);
return new SPacketUpdateTileEntity(this.getPos(), 1, compound);
}
use of net.minecraft.network.play.server.SPacketUpdateTileEntity in project minecolonies by Minecolonies.
the class TileEntityColonyBuilding method getUpdatePacket.
@Override
public SPacketUpdateTileEntity getUpdatePacket() {
final NBTTagCompound compound = new NBTTagCompound();
compound.setInteger(TAG_COLONY, colonyId);
return new SPacketUpdateTileEntity(this.getPosition(), 0, compound);
}
use of net.minecraft.network.play.server.SPacketUpdateTileEntity in project OpenModularTurrets by OpenModularTurretsTeam.
the class TurretHead method getUpdatePacket.
@Nullable
@Override
public SPacketUpdateTileEntity getUpdatePacket() {
NBTTagCompound var1 = new NBTTagCompound();
this.writeToNBT(var1);
return new SPacketUpdateTileEntity(this.pos, 2, var1);
}
use of net.minecraft.network.play.server.SPacketUpdateTileEntity in project Witchworks by Um-Mitternacht.
the class TileItemInventory method getUpdatePacket.
@Override
public final SPacketUpdateTileEntity getUpdatePacket() {
final NBTTagCompound tag = getUpdateTag();
writeDataNBT(tag);
return new SPacketUpdateTileEntity(pos, 0, tag);
}
use of net.minecraft.network.play.server.SPacketUpdateTileEntity in project Overloaded by CJ-MC-Mods.
the class TileItemInterface method getUpdatePacket.
@Nullable
@Override
public SPacketUpdateTileEntity getUpdatePacket() {
NBTTagCompound tag = new NBTTagCompound();
writeToNBT(tag);
return new SPacketUpdateTileEntity(getPos(), 1, tag);
}
Aggregations