Class ServerboundMoveVehiclePacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.level.ServerboundMoveVehiclePacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundMoveVehiclePacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) ServerboundMoveVehiclePacket(org.cloudburstmc.math.vector.Vector3d position, float yRot, float xRot, boolean onGround) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanorg.cloudburstmc.math.vector.Vector3dfloatgetXRot()floatgetYRot()inthashCode()booleanvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ServerboundMoveVehiclePacketwithOnGround(boolean onGround) @NonNull ServerboundMoveVehiclePacketwithPosition(org.cloudburstmc.math.vector.Vector3d position) @NonNull ServerboundMoveVehiclePacketwithXRot(float xRot) @NonNull ServerboundMoveVehiclePacketwithYRot(float yRot) 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
-
ServerboundMoveVehiclePacket
-
ServerboundMoveVehiclePacket
public ServerboundMoveVehiclePacket(org.cloudburstmc.math.vector.Vector3d position, float yRot, float xRot, boolean onGround)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getPosition
public org.cloudburstmc.math.vector.Vector3d getPosition() -
getYRot
public float getYRot() -
getXRot
public float getXRot() -
isOnGround
public boolean isOnGround() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withPosition
public @NonNull ServerboundMoveVehiclePacket withPosition(org.cloudburstmc.math.vector.Vector3d position) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withYRot
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withXRot
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withOnGround
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-