Class PlayerInputC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.PlayerInputC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public class PlayerInputC2SPacket extends Object implements Packet<ServerPlayPacketListener>
- Mappings:
Namespace Name official ttintermediary net/minecraft/class_2851named net/minecraft/network/packet/c2s/play/PlayerInputC2SPacket
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PlayerInputC2SPacket()PlayerInputC2SPacket(float sideways, float forward, boolean jumping, boolean sneaking) -
Method Summary
Modifier and Type Method Description voidapply(ServerPlayPacketListener serverPlayPacketListener)floatgetForward()floatgetSideways()booleanisJumping()booleanisSneaking()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
-
sideways
private float sideways- Mappings:
Namespace Name Mixin selector official aLtt;a:Fintermediary field_12995Lnet/minecraft/class_2851;field_12995:Fnamed sidewaysLnet/minecraft/network/packet/c2s/play/PlayerInputC2SPacket;sideways:F
-
forward
private float forward- Mappings:
Namespace Name Mixin selector official bLtt;b:Fintermediary field_12994Lnet/minecraft/class_2851;field_12994:Fnamed forwardLnet/minecraft/network/packet/c2s/play/PlayerInputC2SPacket;forward:F
-
jumping
private boolean jumping- Mappings:
Namespace Name Mixin selector official cLtt;c:Zintermediary field_12997Lnet/minecraft/class_2851;field_12997:Znamed jumpingLnet/minecraft/network/packet/c2s/play/PlayerInputC2SPacket;jumping:Z
-
sneaking
private boolean sneaking- Mappings:
Namespace Name Mixin selector official dLtt;d:Zintermediary field_12996Lnet/minecraft/class_2851;field_12996:Znamed sneakingLnet/minecraft/network/packet/c2s/play/PlayerInputC2SPacket;sneaking:Z
-
-
Constructor Details
-
PlayerInputC2SPacket
public PlayerInputC2SPacket() -
PlayerInputC2SPacket
@Environment(CLIENT) public PlayerInputC2SPacket(float sideways, float forward, boolean jumping, boolean sneaking)- Mappings:
Namespace Name Mixin selector official <init>Ltt;<init>(FFZZ)Vintermediary <init>Lnet/minecraft/class_2851;<init>(FFZZ)Vnamed <init>Lnet/minecraft/network/packet/c2s/play/PlayerInputC2SPacket;<init>(FFZZ)V
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ServerPlayPacketListener>- 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<ServerPlayPacketListener>- 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<ServerPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLtt;a(Lss;)Vintermediary method_12369Lnet/minecraft/class_2851;method_12369(Lnet/minecraft/class_2792;)Vnamed applyLnet/minecraft/network/packet/c2s/play/PlayerInputC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
-
getSideways
public float getSideways()- Mappings:
Namespace Name Mixin selector official bLtt;b()Fintermediary method_12372Lnet/minecraft/class_2851;method_12372()Fnamed getSidewaysLnet/minecraft/network/packet/c2s/play/PlayerInputC2SPacket;getSideways()F
-
getForward
public float getForward()- Mappings:
Namespace Name Mixin selector official cLtt;c()Fintermediary method_12373Lnet/minecraft/class_2851;method_12373()Fnamed getForwardLnet/minecraft/network/packet/c2s/play/PlayerInputC2SPacket;getForward()F
-
isJumping
public boolean isJumping()- Mappings:
Namespace Name Mixin selector official dLtt;d()Zintermediary method_12371Lnet/minecraft/class_2851;method_12371()Znamed isJumpingLnet/minecraft/network/packet/c2s/play/PlayerInputC2SPacket;isJumping()Z
-
isSneaking
public boolean isSneaking()- Mappings:
Namespace Name Mixin selector official eLtt;e()Zintermediary method_12370Lnet/minecraft/class_2851;method_12370()Znamed isSneakingLnet/minecraft/network/packet/c2s/play/PlayerInputC2SPacket;isSneaking()Z
-