Class BoatEntity

java.lang.Object
org.geysermc.connector.entity.Entity
org.geysermc.connector.entity.BoatEntity

public class BoatEntity extends Entity
  • Constructor Details

    • BoatEntity

      public BoatEntity(long entityId, long geyserId, EntityType entityType, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, com.nukkitx.math.vector.Vector3f rotation)
  • Method Details

    • moveAbsolute

      public void moveAbsolute(GeyserSession session, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround, boolean teleported)
      Overrides:
      moveAbsolute in class Entity
    • moveRelative

      public void moveRelative(GeyserSession session, double relX, double relY, double relZ, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround)
      Overrides:
      moveRelative in class Entity
    • updatePositionAndRotation

      public void updatePositionAndRotation(GeyserSession session, double moveX, double moveY, double moveZ, float yaw, float pitch, boolean isOnGround)
      Description copied from class: Entity
      Updates an entity's position and rotation. Used in JavaEntityPositionRotationTranslator.
      Overrides:
      updatePositionAndRotation in class Entity
      Parameters:
      session - GeyserSession
      moveX - The new X offset of the current position.
      moveY - The new Y offset of the current position.
      moveZ - The new Z offset of the current position.
      yaw - The new yaw of the entity.
      pitch - The new pitch of the entity.
      isOnGround - Whether the entity is currently on the ground.
    • updateRotation

      public void updateRotation(GeyserSession session, float yaw, float pitch, boolean isOnGround)
      Description copied from class: Entity
      Updates an entity's rotation. Used in JavaEntityRotationTranslator.
      Overrides:
      updateRotation in class Entity
      Parameters:
      session - GeyserSession.
      yaw - The new yaw of the entity.
      pitch - The new pitch of the entity.
      isOnGround - Whether the entity is currently on the ground.
    • updateBedrockMetadata

      public void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata, GeyserSession session)
      Description copied from class: Entity
      Applies the Java metadata to the local Bedrock metadata copy
      Overrides:
      updateBedrockMetadata in class Entity
      Parameters:
      entityMetadata - the Java entity metadata
      session - GeyserSession
    • updateBedrockMetadata

      public void updateBedrockMetadata(GeyserSession session)
      Description copied from class: Entity
      Sends the Bedrock metadata to the client
      Overrides:
      updateBedrockMetadata in class Entity
      Parameters:
      session - GeyserSession