Class ArmorStandEntity
java.lang.Object
org.geysermc.connector.entity.Entity
org.geysermc.connector.entity.LivingEntity
org.geysermc.connector.entity.living.ArmorStandEntity
-
Field Summary
Fields inherited from class org.geysermc.connector.entity.LivingEntity
boots, chestplate, hand, health, helmet, leggings, maxHealth, offHand -
Constructor Summary
ConstructorsConstructorDescriptionArmorStandEntity(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 TypeMethodDescriptionbooleandespawnEntity(GeyserSession session)Despawns the entityvoidmoveAbsolute(GeyserSession session, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround, boolean teleported)voidmoveRelative(GeyserSession session, double relX, double relY, double relZ, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround)voidsetBoots(com.nukkitx.protocol.bedrock.data.inventory.ItemData boots)voidsetChestplate(com.nukkitx.protocol.bedrock.data.inventory.ItemData chestplate)voidsetHand(com.nukkitx.protocol.bedrock.data.inventory.ItemData hand)voidsetHelmet(com.nukkitx.protocol.bedrock.data.inventory.ItemData helmet)protected voidsetInvisible(GeyserSession session, boolean value)Set a boolean - whether the entity is invisible or visiblevoidsetLeggings(com.nukkitx.protocol.bedrock.data.inventory.ItemData leggings)voidsetOffHand(com.nukkitx.protocol.bedrock.data.inventory.ItemData offHand)voidspawnEntity(GeyserSession session)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 clientMethods inherited from class org.geysermc.connector.entity.LivingEntity
calculateAttribute, createHealthAttribute, isShaking, setDimensions, setFreezing, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHandMethods inherited from class org.geysermc.connector.entity.Entity
addAdditionalSpawnData, as, getBedrockRotation, getMaxAir, is, moveAbsolute, moveRelative, setAir, setDisplayName, teleport, updateHeadLookRotation, updatePositionAndRotation, updateRotation
-
Constructor Details
-
ArmorStandEntity
public ArmorStandEntity(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
-
spawnEntity
- Overrides:
spawnEntityin classEntity
-
despawnEntity
Description copied from class:EntityDespawns the entity- Overrides:
despawnEntityin classEntity- Parameters:
session- The GeyserSession- Returns:
- can be deleted
-
moveRelative
public void moveRelative(GeyserSession session, double relX, double relY, double relZ, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround)- Overrides:
moveRelativein classEntity
-
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
-
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 classLivingEntity- 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
-
setInvisible
Description copied from class:EntitySet a boolean - whether the entity is invisible or visible- Overrides:
setInvisiblein classEntity- Parameters:
session- the Geyser sessionvalue- true if the entity is invisible
-
setHelmet
public void setHelmet(com.nukkitx.protocol.bedrock.data.inventory.ItemData helmet) -
setChestplate
public void setChestplate(com.nukkitx.protocol.bedrock.data.inventory.ItemData chestplate) -
setLeggings
public void setLeggings(com.nukkitx.protocol.bedrock.data.inventory.ItemData leggings) -
setBoots
public void setBoots(com.nukkitx.protocol.bedrock.data.inventory.ItemData boots) -
setHand
public void setHand(com.nukkitx.protocol.bedrock.data.inventory.ItemData hand) -
setOffHand
public void setOffHand(com.nukkitx.protocol.bedrock.data.inventory.ItemData offHand)
-