Class ServerboundPlayerInputPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundPlayerInputPacket
- All Implemented Interfaces:
Packet<ServerGamePacketListener>
public class ServerboundPlayerInputPacket
extends Object
implements Packet<ServerGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
private final boolean
private final boolean
static final StreamCodec
<FriendlyByteBuf, ServerboundPlayerInputPacket> private final float
Positive for left strafe, negative for rightprivate final float
-
Constructor Summary
ConstructorsModifierConstructorDescriptionServerboundPlayerInputPacket
(float pXxa, float pZza, boolean pIsJumping, boolean pIsShiftKeyDown) private
ServerboundPlayerInputPacket
(FriendlyByteBuf p_179720_) -
Method Summary
Modifier and TypeMethodDescriptionfloat
getXxa()
float
getZza()
void
handle
(ServerGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.boolean
boolean
type()
private void
write
(FriendlyByteBuf p_134357_) Writes the raw packet data to the data stream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
FLAG_JUMPING
private static final int FLAG_JUMPING- See Also:
-
FLAG_SHIFT_KEY_DOWN
private static final int FLAG_SHIFT_KEY_DOWN- See Also:
-
xxa
private final float xxaPositive for left strafe, negative for right -
zza
private final float zza -
isJumping
private final boolean isJumping -
isShiftKeyDown
private final boolean isShiftKeyDown
-
-
Constructor Details
-
ServerboundPlayerInputPacket
public ServerboundPlayerInputPacket(float pXxa, float pZza, boolean pIsJumping, boolean pIsShiftKeyDown) -
ServerboundPlayerInputPacket
-
-
Method Details
-
write
Writes the raw packet data to the data stream. -
type
- Specified by:
type
in interfacePacket<ServerGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handle
in interfacePacket<ServerGamePacketListener>
-
getXxa
public float getXxa() -
getZza
public float getZza() -
isJumping
public boolean isJumping() -
isShiftKeyDown
public boolean isShiftKeyDown()
-