public class BlockEventS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private Block |
block |
private int |
data |
private BlockPos |
pos |
private int |
type |
Constructor and Description |
---|
BlockEventS2CPacket() |
BlockEventS2CPacket(BlockPos pos,
Block block,
int type,
int data) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
Block |
getBlock() |
int |
getData() |
BlockPos |
getPos() |
int |
getType() |
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 type
private int data
private Block block
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 getType()
@Environment(value=CLIENT) public int getData()
@Environment(value=CLIENT) public Block getBlock()