Class BoatVehicleComponent
java.lang.Object
org.geysermc.geyser.entity.vehicle.VehicleComponent<BoatEntity>
org.geysermc.geyser.entity.vehicle.BoatVehicleComponent
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.geysermc.geyser.entity.vehicle.VehicleComponent
VehicleComponent.VehicleContext -
Field Summary
Fields inherited from class org.geysermc.geyser.entity.vehicle.VehicleComponent
boundingBox, effectLevitation, effectSlowFalling, effectWeaving, gravity, moveSpeed, stepHeight, vehicle, waterMovementEfficiency -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidmoveVehicle(org.cloudburstmc.math.vector.Vector3d javaPos, org.cloudburstmc.math.vector.Vector3f lastRotation) Sets the new position for the vehicle and sends packets to both the java server and bedrock client.voidCalled every session tick while the player is mounted on the vehicle.Methods inherited from class org.geysermc.geyser.entity.vehicle.VehicleComponent
applyBlockCollisionEffects, correctMovement, getBlockMovementMultiplier, getBlockUnderSupport, getBoundingBox, getFluidGravity, getFluidHeightAndApplyMovement, getGravity, getInputVector, getJumpVelocityMultiplier, getLandingBlock, getLogicalFluidHeight, getMoveSpeed, getRiddenRotation, getVelocityBlock, getVelocityMultiplier, getWaterMovementEfficiency, getWaterSlowDown, getWorldFluidHeight, isClimbing, isFlowBlocked, javaNormalize, landMovement, lavaMovement, moveAbsolute, moveAbsolute, moveRelative, moveRelative, onBubbleColumnCollision, onDismount, onHoneyBlockCollision, onMount, removeEffect, setEffect, setGravity, setHeight, setMoveSpeed, setStepHeight, setWaterMovementEfficiency, setWidth, shouldApplyFluidJumpBoost, travel, updateFluidMovement, updateRotation, waterMovement
-
Constructor Details
-
BoatVehicleComponent
-
-
Method Details
-
tickVehicle
public void tickVehicle()Description copied from class:VehicleComponentCalled every session tick while the player is mounted on the vehicle.- Overrides:
tickVehiclein classVehicleComponent<BoatEntity>
-
moveVehicle
protected void moveVehicle(org.cloudburstmc.math.vector.Vector3d javaPos, org.cloudburstmc.math.vector.Vector3f lastRotation) Description copied from class:VehicleComponentSets the new position for the vehicle and sends packets to both the java server and bedrock client.This also updates the session's last vehicle move timestamp.
- Overrides:
moveVehiclein classVehicleComponent<BoatEntity>- Parameters:
javaPos- the new java position of the vehiclelastRotation- the previous rotation of the vehicle (pitch, yaw, headYaw)
-