use of net.minecraft.network.play.server.SPacketUpdateTileEntity in project NetherEx by LogicTechCorp.
the class TileEntityInventory method getUpdatePacket.
@Override
public SPacketUpdateTileEntity getUpdatePacket() {
NBTTagCompound compound = new NBTTagCompound();
writeToNBT(compound);
return new SPacketUpdateTileEntity(pos, 0, compound);
}
use of net.minecraft.network.play.server.SPacketUpdateTileEntity in project minecolonies by Minecolonies.
the class ScarecrowTileEntity method getUpdatePacket.
///////////---- Following methods are used to update the tileEntity between client and server ----///////////
@NotNull
@Override
public SPacketUpdateTileEntity getUpdatePacket() {
@NotNull final NBTTagCompound tag = new NBTTagCompound();
writeToNBT(tag);
return new SPacketUpdateTileEntity(this.getPos(), 0, tag);
}
use of net.minecraft.network.play.server.SPacketUpdateTileEntity in project ImmersiveEngineering by BluSunrize.
the class TileEntityImmersiveConnectable method getUpdatePacket.
@Override
public SPacketUpdateTileEntity getUpdatePacket() {
NBTTagCompound nbttagcompound = new NBTTagCompound();
this.writeToNBT(nbttagcompound);
writeConnsToNBT(nbttagcompound);
return new SPacketUpdateTileEntity(this.pos, 3, nbttagcompound);
}
use of net.minecraft.network.play.server.SPacketUpdateTileEntity in project ImmersiveEngineering by BluSunrize.
the class TileEntityIEBase method getUpdatePacket.
@Override
public SPacketUpdateTileEntity getUpdatePacket() {
NBTTagCompound nbttagcompound = new NBTTagCompound();
this.writeCustomNBT(nbttagcompound, true);
return new SPacketUpdateTileEntity(this.pos, 3, nbttagcompound);
}
use of net.minecraft.network.play.server.SPacketUpdateTileEntity in project ConvenientAdditions by Necr0.
the class TileEntityComposter method getUpdatePacket.
@Override
public SPacketUpdateTileEntity getUpdatePacket() {
NBTTagCompound nbt = new NBTTagCompound();
writeSyncNBT(nbt);
return new SPacketUpdateTileEntity(this.pos, 0, nbt);
}
Aggregations