Class PlayerInteractionC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.PlayerInteractionC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public class PlayerInteractionC2SPacket extends Object implements Packet<ServerPlayPacketListener>
- Mappings:
Namespace Name official irintermediary net/minecraft/class_1569named net/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlayerInteractionC2SPacket.Action -
Field Summary
-
Constructor Summary
Constructors Constructor Description PlayerInteractionC2SPacket()PlayerInteractionC2SPacket(PlayerInteractionC2SPacket.Action action, BlockPos pos, Direction direction) -
Method Summary
Modifier and Type Method Description voidapply(ServerPlayPacketListener serverPlayPacketListener)PlayerInteractionC2SPacket.ActiongetAction()DirectiongetDirection()BlockPosgetPos()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)
-
Field Details
-
pos
- Mappings:
Namespace Name Mixin selector official aLir;a:Lcj;intermediary field_6427Lnet/minecraft/class_1569;field_6427:Lnet/minecraft/class_1372;named posLnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket;pos:Lnet/minecraft/util/math/BlockPos;
-
direction
- Mappings:
Namespace Name Mixin selector official bLir;b:Lcq;intermediary field_6428Lnet/minecraft/class_1569;field_6428:Lnet/minecraft/class_1383;named directionLnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket;direction:Lnet/minecraft/util/math/Direction;
-
action
- Mappings:
Namespace Name Mixin selector official cLir;c:Lir$a;intermediary field_6429Lnet/minecraft/class_1569;field_6429:Lnet/minecraft/class_1569$class_1570;named actionLnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket;action:Lnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket$Action;
-
-
Constructor Details
-
PlayerInteractionC2SPacket
public PlayerInteractionC2SPacket() -
PlayerInteractionC2SPacket
@Environment(CLIENT) public PlayerInteractionC2SPacket(PlayerInteractionC2SPacket.Action action, BlockPos pos, Direction direction)- Mappings:
Namespace Name Mixin selector official <init>Lir;<init>(Lir$a;Lcj;Lcq;)Vintermediary <init>Lnet/minecraft/class_1569;<init>(Lnet/minecraft/class_1569$class_1570;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;)Vnamed <init>Lnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket;<init>(Lnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket$Action;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)V
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ServerPlayPacketListener>- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLff;a(Lem;)Vintermediary method_5238Lnet/minecraft/class_1457;method_5238(Lnet/minecraft/class_1435;)Vnamed readLnet/minecraft/network/Packet;read(Lnet/minecraft/util/PacketByteBuf;)V
-
write
- Specified by:
writein interfacePacket<ServerPlayPacketListener>- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLff;b(Lem;)Vintermediary method_5240Lnet/minecraft/class_1457;method_5240(Lnet/minecraft/class_1435;)Vnamed writeLnet/minecraft/network/Packet;write(Lnet/minecraft/util/PacketByteBuf;)V
-
apply
- Specified by:
applyin interfacePacket<ServerPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLir;a(Lic;)Vintermediary method_5792Lnet/minecraft/class_1569;method_5792(Lnet/minecraft/class_1550;)Vnamed applyLnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
-
getPos
- Mappings:
Namespace Name Mixin selector official aLir;a()Lcj;intermediary method_5791Lnet/minecraft/class_1569;method_5791()Lnet/minecraft/class_1372;named getPosLnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket;getPos()Lnet/minecraft/util/math/BlockPos;
-
getDirection
- Mappings:
Namespace Name Mixin selector official bLir;b()Lcq;intermediary method_5793Lnet/minecraft/class_1569;method_5793()Lnet/minecraft/class_1383;named getDirectionLnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket;getDirection()Lnet/minecraft/util/math/Direction;
-
getAction
- Mappings:
Namespace Name Mixin selector official cLir;c()Lir$a;intermediary method_5794Lnet/minecraft/class_1569;method_5794()Lnet/minecraft/class_1569$class_1570;named getActionLnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket;getAction()Lnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket$Action;
-