Class ServerboundPlayerInputPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.level.ServerboundPlayerInputPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundPlayerInputPacket(float sideways, float forward, boolean jump, boolean dismount) ServerboundPlayerInputPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanfloatfloatinthashCode()booleanbooleanisJump()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ServerboundPlayerInputPacketwithDismount(boolean dismount) @NonNull ServerboundPlayerInputPacketwithForward(float forward) @NonNull ServerboundPlayerInputPacketwithJump(boolean jump) @NonNull ServerboundPlayerInputPacketwithSideways(float sideways) 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
-
Constructor Details
-
ServerboundPlayerInputPacket
-
ServerboundPlayerInputPacket
public ServerboundPlayerInputPacket(float sideways, float forward, boolean jump, boolean dismount)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getSideways
public float getSideways() -
getForward
public float getForward() -
isJump
public boolean isJump() -
isDismount
public boolean isDismount() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withSideways
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withForward
- 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).
-
withDismount
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-