public class BoatEntity extends Entity
attributes, entityId, entityType, geyserId, metadata, motion, onGround, passengers, position, rotation, scale, valid| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
void |
moveAbsolute(GeyserSession session,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f rotation,
boolean isOnGround,
boolean teleported) |
void |
moveRelative(GeyserSession session,
double relX,
double relY,
double relZ,
com.nukkitx.math.vector.Vector3f rotation,
boolean isOnGround) |
void |
updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
Applies the Java metadata to the local Bedrock metadata copy
|
void |
updateBedrockMetadata(GeyserSession session)
Sends the Bedrock metadata to the client
|
void |
updatePositionAndRotation(GeyserSession session,
double moveX,
double moveY,
double moveZ,
float yaw,
float pitch,
boolean isOnGround)
Updates an entity's position and rotation.
|
void |
updateRotation(GeyserSession session,
float yaw,
float pitch,
boolean isOnGround)
Updates an entity's rotation.
|
as, despawnEntity, getBedrockRotation, is, moveAbsolute, moveRelative, spawnEntity, teleport, updateBedrockAttributes, updateHeadLookRotationpublic 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)
public void moveAbsolute(GeyserSession session, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround, boolean teleported)
moveAbsolute in class Entitypublic void moveRelative(GeyserSession session, double relX, double relY, double relZ, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround)
moveRelative in class Entitypublic void updatePositionAndRotation(GeyserSession session, double moveX, double moveY, double moveZ, float yaw, float pitch, boolean isOnGround)
EntityupdatePositionAndRotation in class Entitysession - 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.public void updateRotation(GeyserSession session, float yaw, float pitch, boolean isOnGround)
EntityupdateRotation in class Entitysession - GeyserSession.yaw - The new yaw of the entity.pitch - The new pitch of the entity.isOnGround - Whether the entity is currently on the ground.public void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
EntityupdateBedrockMetadata in class EntityentityMetadata - the Java entity metadatasession - GeyserSessionpublic void updateBedrockMetadata(GeyserSession session)
EntityupdateBedrockMetadata in class Entitysession - GeyserSessionCopyright © 2021 GeyserMC. All rights reserved.