Package org.geysermc.connector.entity
Class BoatEntity
java.lang.Object
org.geysermc.connector.entity.Entity
org.geysermc.connector.entity.BoatEntity
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBoatEntity(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 Summary
Modifier and TypeMethodDescriptionvoidmoveAbsolute(GeyserSession session, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround, boolean teleported)voidmoveAbsoluteWithoutAdjustments(GeyserSession session, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround, boolean teleported)Move the boat without making the adjustments needed to translate from JavavoidmoveRelative(GeyserSession session, double relX, double relY, double relZ, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround)voidupdateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata, GeyserSession session)Applies the Java metadata to the local Bedrock metadata copyvoidupdateBedrockMetadata(GeyserSession session)Sends the Bedrock metadata to the clientvoidupdatePositionAndRotation(GeyserSession session, double moveX, double moveY, double moveZ, float yaw, float pitch, boolean isOnGround)Updates an entity's position and rotation.voidupdateRotation(GeyserSession session, float yaw, float pitch, boolean isOnGround)Updates an entity's rotation.Methods inherited from class org.geysermc.connector.entity.Entity
addAdditionalSpawnData, as, despawnEntity, getBedrockRotation, getMaxAir, is, isShaking, moveAbsolute, moveRelative, setAir, setDimensions, setDisplayName, setFreezing, setInvisible, spawnEntity, teleport, updateHeadLookRotation
-
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:
moveAbsolutein classEntity
-
moveAbsoluteWithoutAdjustments
public void moveAbsoluteWithoutAdjustments(GeyserSession session, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround, boolean teleported)Move the boat without making the adjustments needed to translate from Java -
moveRelative
public void moveRelative(GeyserSession session, double relX, double relY, double relZ, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround)- Overrides:
moveRelativein classEntity
-
updatePositionAndRotation
public void updatePositionAndRotation(GeyserSession session, double moveX, double moveY, double moveZ, float yaw, float pitch, boolean isOnGround)Description copied from class:EntityUpdates an entity's position and rotation. Used in JavaEntityPositionRotationTranslator.- Overrides:
updatePositionAndRotationin classEntity- Parameters:
session- GeyserSessionmoveX- 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
Description copied from class:EntityUpdates an entity's rotation. Used in JavaEntityRotationTranslator.- Overrides:
updateRotationin classEntity- 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:EntityApplies the Java metadata to the local Bedrock metadata copy- Overrides:
updateBedrockMetadatain classEntity- Parameters:
entityMetadata- the Java entity metadatasession- GeyserSession
-
updateBedrockMetadata
Description copied from class:EntitySends the Bedrock metadata to the client- Overrides:
updateBedrockMetadatain classEntity- Parameters:
session- GeyserSession
-