Class PlayerActionResponseS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.PlayerActionResponseS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class PlayerActionResponseS2CPacket extends Object implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official pmintermediary net/minecraft/class_4463named net/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket
-
Field Summary
Fields Modifier and Type Field Description (package private) PlayerActionC2SPacket.Actionactionprivate booleanapprovedprivate static LoggerLOGGERprivate BlockPosposprivate BlockStatestate -
Constructor Summary
Constructors Constructor Description PlayerActionResponseS2CPacket()PlayerActionResponseS2CPacket(BlockPos pos, BlockState state, PlayerActionC2SPacket.Action action, boolean approved, String reason) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)PlayerActionC2SPacket.ActiongetAction()BlockPosgetBlockPos()BlockStategetBlockState()booleanisApproved()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bLpm;b:Lorg/apache/logging/log4j/Logger;intermediary field_20320Lnet/minecraft/class_4463;field_20320:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;LOGGER:Lorg/apache/logging/log4j/Logger;
-
pos
- Mappings:
Namespace Name Mixin selector official cLpm;c:Lfx;intermediary field_20321Lnet/minecraft/class_4463;field_20321:Lnet/minecraft/class_2338;named posLnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;pos:Lnet/minecraft/util/math/BlockPos;
-
state
- Mappings:
Namespace Name Mixin selector official dLpm;d:Lcht;intermediary field_20322Lnet/minecraft/class_4463;field_20322:Lnet/minecraft/class_2680;named stateLnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;state:Lnet/minecraft/block/BlockState;
-
action
PlayerActionC2SPacket.Action action- Mappings:
Namespace Name Mixin selector official aLpm;a:Ltr$a;intermediary field_20319Lnet/minecraft/class_4463;field_20319:Lnet/minecraft/class_2846$class_2847;named actionLnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;action:Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;
-
approved
private boolean approved- Mappings:
Namespace Name Mixin selector official eLpm;e:Zintermediary field_20323Lnet/minecraft/class_4463;field_20323:Znamed approvedLnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;approved:Z
-
-
Constructor Details
-
PlayerActionResponseS2CPacket
public PlayerActionResponseS2CPacket() -
PlayerActionResponseS2CPacket
public PlayerActionResponseS2CPacket(BlockPos pos, BlockState state, PlayerActionC2SPacket.Action action, boolean approved, String reason)- Mappings:
Namespace Name Mixin selector official <init>Lpm;<init>(Lfx;Lcht;Ltr$a;ZLjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_4463;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2846$class_2847;ZLjava/lang/String;)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;ZLjava/lang/String;)V
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLpa;a(Lnw;)Vintermediary method_11053Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)Vnamed readLnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLpa;b(Lnw;)Vintermediary method_11052Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLpm;a(Lpd;)Vintermediary method_21708Lnet/minecraft/class_4463;method_21708(Lnet/minecraft/class_2602;)Vnamed applyLnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
getBlockState
- Mappings:
Namespace Name Mixin selector official bLpm;b()Lcht;intermediary method_21709Lnet/minecraft/class_4463;method_21709()Lnet/minecraft/class_2680;named getBlockStateLnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;getBlockState()Lnet/minecraft/block/BlockState;
-
getBlockPos
- Mappings:
Namespace Name Mixin selector official cLpm;c()Lfx;intermediary method_21710Lnet/minecraft/class_4463;method_21710()Lnet/minecraft/class_2338;named getBlockPosLnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;getBlockPos()Lnet/minecraft/util/math/BlockPos;
-
isApproved
- Mappings:
Namespace Name Mixin selector official dLpm;d()Zintermediary method_21711Lnet/minecraft/class_4463;method_21711()Znamed isApprovedLnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;isApproved()Z
-
getAction
- Mappings:
Namespace Name Mixin selector official eLpm;e()Ltr$a;intermediary method_21712Lnet/minecraft/class_4463;method_21712()Lnet/minecraft/class_2846$class_2847;named getActionLnet/minecraft/network/packet/s2c/play/PlayerActionResponseS2CPacket;getAction()Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;
-