public class LivingEntity extends Entity
| Modifier and Type | Field and Description |
|---|---|
protected com.nukkitx.protocol.bedrock.data.inventory.ItemData |
boots |
protected com.nukkitx.protocol.bedrock.data.inventory.ItemData |
chestplate |
protected com.nukkitx.protocol.bedrock.data.inventory.ItemData |
hand |
protected com.nukkitx.protocol.bedrock.data.inventory.ItemData |
helmet |
protected com.nukkitx.protocol.bedrock.data.inventory.ItemData |
leggings |
protected com.nukkitx.protocol.bedrock.data.inventory.ItemData |
offHand |
attributes, entityId, entityType, geyserId, metadata, motion, onGround, passengers, position, rotation, scale, valid| Constructor and Description |
|---|
LivingEntity(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 |
|---|---|
protected float |
getDefaultMaxHealth()
Used for the health visual when mounting an entity.
|
void |
updateAllEquipment(GeyserSession session) |
void |
updateArmor(GeyserSession session) |
void |
updateBedrockAttributes(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 |
updateMainHand(GeyserSession session) |
void |
updateOffHand(GeyserSession session) |
as, despawnEntity, getBedrockRotation, is, moveAbsolute, moveAbsolute, moveRelative, moveRelative, spawnEntity, teleport, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotationprotected com.nukkitx.protocol.bedrock.data.inventory.ItemData helmet
protected com.nukkitx.protocol.bedrock.data.inventory.ItemData chestplate
protected com.nukkitx.protocol.bedrock.data.inventory.ItemData leggings
protected com.nukkitx.protocol.bedrock.data.inventory.ItemData boots
protected com.nukkitx.protocol.bedrock.data.inventory.ItemData hand
protected com.nukkitx.protocol.bedrock.data.inventory.ItemData offHand
public LivingEntity(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 updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
EntityupdateBedrockMetadata in class EntityentityMetadata - the Java entity metadatasession - GeyserSessionpublic void updateAllEquipment(GeyserSession session)
public void updateArmor(GeyserSession session)
public void updateMainHand(GeyserSession session)
public void updateOffHand(GeyserSession session)
public void updateBedrockAttributes(GeyserSession session)
updateBedrockAttributes in class Entityprotected float getDefaultMaxHealth()
Copyright © 2021 GeyserMC. All rights reserved.