Search in sources :

Example 1 with SUpdateTileEntityPacket

use of net.minecraft.network.play.server.SUpdateTileEntityPacket in project Overloaded by CJ-MC-Mods.

the class TileItemInterface method getUpdatePacket.

@Nullable
@Override
public SUpdateTileEntityPacket getUpdatePacket() {
    CompoundNBT tag = new CompoundNBT();
    save(tag);
    return new SUpdateTileEntityPacket(getBlockPos(), 1, tag);
}
Also used : CompoundNBT(net.minecraft.nbt.CompoundNBT) SUpdateTileEntityPacket(net.minecraft.network.play.server.SUpdateTileEntityPacket) Nullable(javax.annotation.Nullable)

Example 2 with SUpdateTileEntityPacket

use of net.minecraft.network.play.server.SUpdateTileEntityPacket in project Overloaded by CJ-MC-Mods.

the class TilePlayerInterface method getUpdatePacket.

@Nullable
@Override
public SUpdateTileEntityPacket getUpdatePacket() {
    CompoundNBT tag = new CompoundNBT();
    save(tag);
    return new SUpdateTileEntityPacket(getBlockPos(), 1, tag);
}
Also used : CompoundNBT(net.minecraft.nbt.CompoundNBT) SUpdateTileEntityPacket(net.minecraft.network.play.server.SUpdateTileEntityPacket) Nullable(javax.annotation.Nullable)

Example 3 with SUpdateTileEntityPacket

use of net.minecraft.network.play.server.SUpdateTileEntityPacket in project BluePower by Qmunity.

the class TileBPMicroblock method getUpdatePacket.

@Override
public SUpdateTileEntityPacket getUpdatePacket() {
    CompoundNBT nbtTag = new CompoundNBT();
    save(nbtTag);
    return new SUpdateTileEntityPacket(getBlockPos(), 1, nbtTag);
}
Also used : CompoundNBT(net.minecraft.nbt.CompoundNBT) SUpdateTileEntityPacket(net.minecraft.network.play.server.SUpdateTileEntityPacket)

Example 4 with SUpdateTileEntityPacket

use of net.minecraft.network.play.server.SUpdateTileEntityPacket in project BluePower by Qmunity.

the class TileBPMultipart method getUpdatePacket.

@Override
public SUpdateTileEntityPacket getUpdatePacket() {
    CompoundNBT nbtTag = new CompoundNBT();
    save(nbtTag);
    return new SUpdateTileEntityPacket(getBlockPos(), 1, nbtTag);
}
Also used : CompoundNBT(net.minecraft.nbt.CompoundNBT) SUpdateTileEntityPacket(net.minecraft.network.play.server.SUpdateTileEntityPacket)

Aggregations

CompoundNBT (net.minecraft.nbt.CompoundNBT)4 SUpdateTileEntityPacket (net.minecraft.network.play.server.SUpdateTileEntityPacket)4 Nullable (javax.annotation.Nullable)2