public class BlockUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private BlockPos |
pos |
private BlockState |
state |
Constructor and Description |
---|
BlockUpdateS2CPacket() |
BlockUpdateS2CPacket(BlockPos blockPos,
BlockState blockState) |
BlockUpdateS2CPacket(BlockView world,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
BlockPos |
getPos() |
BlockState |
getState() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private BlockPos pos
private BlockState state
public BlockUpdateS2CPacket()
public BlockUpdateS2CPacket(BlockPos blockPos, BlockState blockState)
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 BlockState getState()
@Environment(value=CLIENT) public BlockPos getPos()