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, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()booleanbooleanbooleanisJump()booleanisLeft()booleanisRight()booleanisShift()booleanisSprint()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority, isTerminal
-
Constructor Details
-
ServerboundPlayerInputPacket
-
ServerboundPlayerInputPacket
public ServerboundPlayerInputPacket(boolean forward, boolean backward, boolean left, boolean right, boolean jump, boolean shift, boolean sprint)
-
-
Method Details
-
serialize
- 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
public int 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).
-