public class PlayerInteractBlockC2SPacket extends Object implements Packet<ServerPlayPacketListener>
| Modifier and Type | Field and Description |
|---|---|
private BlockHitResult |
blockHitResult |
private Hand |
hand |
| Constructor and Description |
|---|
PlayerInteractBlockC2SPacket() |
PlayerInteractBlockC2SPacket(Hand hand,
BlockHitResult blockHitResult) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
BlockHitResult |
getBlockHitResult() |
Hand |
getHand() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate BlockHitResult blockHitResult
private Hand hand
public PlayerInteractBlockC2SPacket()
@Environment(value=CLIENT) public PlayerInteractBlockC2SPacket(Hand hand, BlockHitResult blockHitResult)
public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ServerPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ServerPlayPacketListener>IOExceptionpublic void apply(ServerPlayPacketListener serverPlayPacketListener)
apply in interface Packet<ServerPlayPacketListener>public Hand getHand()
public BlockHitResult getBlockHitResult()