Class ServerboundPlayerInputPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.level.ServerboundPlayerInputPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundPlayerInputPacket(boolean forward, boolean backward, boolean left, boolean right, boolean jump, boolean shift, boolean sprint) ServerboundPlayerInputPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()booleanbooleanbooleanisJump()booleanisLeft()booleanisRight()booleanisShift()booleanisSprint()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ServerboundPlayerInputPacketwithBackward(boolean backward) @NonNull ServerboundPlayerInputPacketwithForward(boolean forward) @NonNull ServerboundPlayerInputPacketwithJump(boolean jump) @NonNull ServerboundPlayerInputPacketwithLeft(boolean left) @NonNull ServerboundPlayerInputPacketwithRight(boolean right) @NonNull ServerboundPlayerInputPacketwithShift(boolean shift) @NonNull ServerboundPlayerInputPacketwithSprint(boolean sprint) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ServerboundPlayerInputPacket
public ServerboundPlayerInputPacket(io.netty.buffer.ByteBuf in) -
ServerboundPlayerInputPacket
public ServerboundPlayerInputPacket(boolean forward, boolean backward, boolean left, boolean right, boolean jump, boolean shift, boolean sprint)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
isForward
public boolean isForward() -
isBackward
public boolean isBackward() -
isLeft
public boolean isLeft() -
isRight
public boolean isRight() -
isJump
public boolean isJump() -
isShift
public boolean isShift() -
isSprint
public boolean isSprint() -
equals
-
canEqual
-
hashCode
-
toString
-
withForward
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBackward
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLeft
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRight
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withJump
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withShift
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSprint
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-