Class ServerboundMovePlayerStatusOnlyPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.player.ServerboundMovePlayerStatusOnlyPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundMovePlayerStatusOnlyPacket(boolean onGround, boolean horizontalCollision) ServerboundMovePlayerStatusOnlyPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()booleanbooleanvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()withHorizontalCollision(boolean horizontalCollision) withOnGround(boolean onGround) 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
-
ServerboundMovePlayerStatusOnlyPacket
public ServerboundMovePlayerStatusOnlyPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
ServerboundMovePlayerStatusOnlyPacket
public ServerboundMovePlayerStatusOnlyPacket(boolean onGround, boolean horizontalCollision)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
isOnGround
public boolean isOnGround() -
isHorizontalCollision
public boolean isHorizontalCollision() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withOnGround
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withHorizontalCollision
public @NonNull ServerboundMovePlayerStatusOnlyPacket withHorizontalCollision(boolean horizontalCollision) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-