Class BoatVehicleComponent

java.lang.Object
org.geysermc.geyser.entity.vehicle.VehicleComponent<BoatEntity>
org.geysermc.geyser.entity.vehicle.BoatVehicleComponent

public class BoatVehicleComponent extends VehicleComponent<BoatEntity>
  • Constructor Details

    • BoatVehicleComponent

      public BoatVehicleComponent(BoatEntity vehicle, float stepHeight)
  • Method Details

    • tickVehicle

      public void tickVehicle()
      Description copied from class: VehicleComponent
      Called every session tick while the player is mounted on the vehicle.
      Overrides:
      tickVehicle in class VehicleComponent<BoatEntity>
    • moveVehicle

      protected void moveVehicle(org.cloudburstmc.math.vector.Vector3d javaPos, org.cloudburstmc.math.vector.Vector3f lastRotation)
      Description copied from class: VehicleComponent
      Sets 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:
      moveVehicle in class VehicleComponent<BoatEntity>
      Parameters:
      javaPos - the new java position of the vehicle
      lastRotation - the previous rotation of the vehicle (pitch, yaw, headYaw)