public class BlockEntityUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private int |
blockEntityType |
private BlockPos |
pos |
private CompoundTag |
tag |
Constructor and Description |
---|
BlockEntityUpdateS2CPacket() |
BlockEntityUpdateS2CPacket(BlockPos pos,
int blockEntityType,
CompoundTag tag) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
int |
getBlockEntityType() |
CompoundTag |
getCompoundTag() |
BlockPos |
getPos() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private BlockPos pos
private int blockEntityType
private CompoundTag tag
public BlockEntityUpdateS2CPacket()
public BlockEntityUpdateS2CPacket(BlockPos pos, int blockEntityType, CompoundTag tag)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public BlockPos getPos()
@Environment(value=CLIENT) public int getBlockEntityType()
@Environment(value=CLIENT) public CompoundTag getCompoundTag()