public class PlayerActionResponseS2CPacket extends Object implements Packet<ClientPlayPacketListener>
| Modifier and Type | Field and Description |
|---|---|
(package private) PlayerActionC2SPacket.Action |
action |
private boolean |
approved |
private static Logger |
LOGGER |
private BlockPos |
pos |
private BlockState |
state |
| Constructor and Description |
|---|
PlayerActionResponseS2CPacket() |
PlayerActionResponseS2CPacket(BlockPos pos,
BlockState state,
PlayerActionC2SPacket.Action action,
boolean approved,
String reason) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
PlayerActionC2SPacket.Action |
getAction() |
BlockPos |
getBlockPos() |
BlockState |
getBlockState() |
boolean |
isApproved() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate static final Logger LOGGER
private BlockPos pos
private BlockState state
PlayerActionC2SPacket.Action action
private boolean approved
public PlayerActionResponseS2CPacket()
public PlayerActionResponseS2CPacket(BlockPos pos, BlockState state, PlayerActionC2SPacket.Action action, boolean approved, String reason)
public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ClientPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ClientPlayPacketListener>IOExceptionpublic void apply(ClientPlayPacketListener clientPlayPacketListener)
apply in interface Packet<ClientPlayPacketListener>@Environment(value=CLIENT) public BlockState getBlockState()
@Environment(value=CLIENT) public BlockPos getBlockPos()
@Environment(value=CLIENT) public boolean isApproved()
@Environment(value=CLIENT) public PlayerActionC2SPacket.Action getAction()