public class PlayerEntity extends LivingEntity
boots, chestplate, hand, health, helmet, leggings, maxHealth, offHand| Constructor and Description |
|---|
PlayerEntity(com.github.steveice10.mc.auth.data.GameProfile gameProfile,
long entityId,
long geyserId,
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 |
sendPlayer(GeyserSession session) |
protected void |
setDimensions(com.github.steveice10.mc.protocol.data.game.entity.metadata.Pose pose)
Set the height and width of the entity's bounding box
|
void |
setPosition(com.nukkitx.math.vector.Vector3f position) |
void |
spawnEntity(GeyserSession session) |
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 |
updateHeadLookRotation(GeyserSession session,
float headYaw)
Updates an entity's head position.
|
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.
|
calculateAttribute, createHealthAttribute, isShaking, setFreezing, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHandaddAdditionalSpawnData, as, despawnEntity, getBedrockRotation, is, moveAbsolute, moveRelative, teleport, updateBedrockMetadatapublic PlayerEntity(com.github.steveice10.mc.auth.data.GameProfile gameProfile,
long entityId,
long geyserId,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f motion,
com.nukkitx.math.vector.Vector3f rotation)
public void spawnEntity(GeyserSession session)
spawnEntity in class Entitypublic void sendPlayer(GeyserSession session)
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 updateHeadLookRotation(GeyserSession session, float headYaw)
EntityupdateHeadLookRotation in class Entitysession - GeyserSession.headYaw - The new head rotation of the entity.public 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 setPosition(com.nukkitx.math.vector.Vector3f position)
public void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
EntityupdateBedrockMetadata in class LivingEntityentityMetadata - the Java entity metadatasession - GeyserSessionprotected void setDimensions(com.github.steveice10.mc.protocol.data.game.entity.metadata.Pose pose)
EntitysetDimensions in class LivingEntityCopyright © 2021 GeyserMC. All rights reserved.