Class ArmorStandEntity
java.lang.Object
org.geysermc.geyser.entity.type.Entity
org.geysermc.geyser.entity.type.LivingEntity
org.geysermc.geyser.entity.type.living.ArmorStandEntity
-
Field Summary
Fields inherited from class org.geysermc.geyser.entity.type.LivingEntity
boots, chestplate, hand, health, helmet, leggings, maxHealth, offHand -
Constructor Summary
ConstructorsConstructorDescriptionArmorStandEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, float yaw, float pitch, float headYaw) -
Method Summary
Modifier and TypeMethodDescriptionbooleanDespawns the entitycom.nukkitx.math.vector.Vector3fx = Pitch, y = Yaw, z = HeadYawinteractAt(com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand)Simulates interacting with this entity at a specific click point.voidmoveAbsolute(com.nukkitx.math.vector.Vector3f position, float yaw, float pitch, float headYaw, boolean isOnGround, boolean teleported)voidmoveRelative(double relX, double relY, double relZ, float yaw, float pitch, float headYaw, boolean isOnGround)voidsetArmorStandFlags(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.ByteEntityMetadata entityMetadata)voidsetBodyRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<com.nukkitx.math.vector.Vector3f,?> entityMetadata)voidsetBoots(com.nukkitx.protocol.bedrock.data.inventory.ItemData boots)voidsetChestplate(com.nukkitx.protocol.bedrock.data.inventory.ItemData chestplate)voidsetDisplayName(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<Optional<net.kyori.adventure.text.Component>,?> entityMetadata)voidsetHand(com.nukkitx.protocol.bedrock.data.inventory.ItemData hand)voidsetHeadRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<com.nukkitx.math.vector.Vector3f,?> entityMetadata)voidsetHelmet(com.nukkitx.protocol.bedrock.data.inventory.ItemData helmet)protected voidsetInvisible(boolean value)Set a boolean - whether the entity is invisible or visiblevoidsetLeftArmRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<com.nukkitx.math.vector.Vector3f,?> entityMetadata)voidsetLeftLegRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<com.nukkitx.math.vector.Vector3f,?> entityMetadata)voidsetLeggings(com.nukkitx.protocol.bedrock.data.inventory.ItemData leggings)voidsetOffHand(com.nukkitx.protocol.bedrock.data.inventory.ItemData offHand)voidsetRightArmRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<com.nukkitx.math.vector.Vector3f,?> entityMetadata)voidsetRightLegRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<com.nukkitx.math.vector.Vector3f,?> entityMetadata)voidvoidSends the Bedrock metadata to the clientMethods inherited from class org.geysermc.geyser.entity.type.LivingEntity
calculateAttribute, checkInteractWithNameTag, createHealthAttribute, hasShield, initializeMetadata, interact, isAlive, isShaking, setBedPosition, setDimensions, setFreezing, setHealth, setLivingEntityFlags, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHandMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, as, getFlag, getMaxAir, moveAbsolute, moveRelative, playEntityEvent, playEntityEvent, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setClientSideSilent, setDisplayNameVisible, setFlag, setFlags, setGravity, setPose, setRiderSeatPosition, setSilent, teleport, testInteraction, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updatePassengerOffsets, updatePositionAndRotation, updateRotation
-
Constructor Details
-
ArmorStandEntity
public ArmorStandEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, float yaw, float pitch, float headYaw)
-
-
Method Details
-
spawnEntity
public void spawnEntity()- Overrides:
spawnEntityin classEntity
-
despawnEntity
public boolean despawnEntity()Description copied from class:EntityDespawns the entity- Overrides:
despawnEntityin classEntity- Returns:
- can be deleted
-
moveRelative
public void moveRelative(double relX, double relY, double relZ, float yaw, float pitch, float headYaw, boolean isOnGround)- Overrides:
moveRelativein classEntity
-
moveAbsolute
public void moveAbsolute(com.nukkitx.math.vector.Vector3f position, float yaw, float pitch, float headYaw, boolean isOnGround, boolean teleported)- Overrides:
moveAbsolutein classEntity
-
setDisplayName
public void setDisplayName(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<Optional<net.kyori.adventure.text.Component>,?> entityMetadata)- Overrides:
setDisplayNamein classEntity
-
setArmorStandFlags
public void setArmorStandFlags(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.ByteEntityMetadata entityMetadata) -
setHeadRotation
public void setHeadRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<com.nukkitx.math.vector.Vector3f,?> entityMetadata) -
setBodyRotation
public void setBodyRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<com.nukkitx.math.vector.Vector3f,?> entityMetadata) -
setLeftArmRotation
public void setLeftArmRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<com.nukkitx.math.vector.Vector3f,?> entityMetadata) -
setRightArmRotation
public void setRightArmRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<com.nukkitx.math.vector.Vector3f,?> entityMetadata) -
setLeftLegRotation
public void setLeftLegRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<com.nukkitx.math.vector.Vector3f,?> entityMetadata) -
setRightLegRotation
public void setRightLegRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<com.nukkitx.math.vector.Vector3f,?> entityMetadata) -
updateBedrockMetadata
public void updateBedrockMetadata()Description copied from class:EntitySends the Bedrock metadata to the client- Overrides:
updateBedrockMetadatain classEntity
-
setInvisible
protected void setInvisible(boolean value)Description copied from class:EntitySet a boolean - whether the entity is invisible or visible- Overrides:
setInvisiblein classEntity- Parameters:
value- true if the entity is invisible
-
interactAt
public InteractionResult interactAt(com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand)Description copied from class:EntitySimulates interacting with this entity at a specific click point. As of Java Edition 1.18.1, this is only used for armor stands.- Overrides:
interactAtin classEntity
-
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) -
getBedrockRotation
public com.nukkitx.math.vector.Vector3f getBedrockRotation()Description copied from class:Entityx = Pitch, y = Yaw, z = HeadYaw- Overrides:
getBedrockRotationin classEntity- Returns:
- the bedrock rotation
-