Search in sources :

Example 1 with SPacketUpdateTileEntity

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);
}
Also used : NBTTagCompound(net.minecraft.nbt.NBTTagCompound) SPacketUpdateTileEntity(net.minecraft.network.play.server.SPacketUpdateTileEntity)

Example 2 with SPacketUpdateTileEntity

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);
}
Also used : NBTTagCompound(net.minecraft.nbt.NBTTagCompound) SPacketUpdateTileEntity(net.minecraft.network.play.server.SPacketUpdateTileEntity)

Example 3 with SPacketUpdateTileEntity

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);
}
Also used : NBTTagCompound(net.minecraft.nbt.NBTTagCompound) SPacketUpdateTileEntity(net.minecraft.network.play.server.SPacketUpdateTileEntity) Nullable(javax.annotation.Nullable)

Example 4 with SPacketUpdateTileEntity

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);
}
Also used : NBTTagCompound(net.minecraft.nbt.NBTTagCompound) SPacketUpdateTileEntity(net.minecraft.network.play.server.SPacketUpdateTileEntity)

Example 5 with SPacketUpdateTileEntity

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);
}
Also used : NBTTagCompound(net.minecraft.nbt.NBTTagCompound) SPacketUpdateTileEntity(net.minecraft.network.play.server.SPacketUpdateTileEntity) Nullable(javax.annotation.Nullable)

Aggregations

SPacketUpdateTileEntity (net.minecraft.network.play.server.SPacketUpdateTileEntity)17 NBTTagCompound (net.minecraft.nbt.NBTTagCompound)16 Nullable (javax.annotation.Nullable)3 WorldServer (net.minecraft.world.WorldServer)1 NotNull (org.jetbrains.annotations.NotNull)1