Class ArmorStandEntity
java.lang.Object
org.geysermc.geyser.entity.type.Entity
org.geysermc.geyser.entity.type.LivingEntity
org.geysermc.geyser.entity.type.living.ArmorStandEntity
- All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity
-
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, org.cloudburstmc.math.vector.Vector3f position, org.cloudburstmc.math.vector.Vector3f motion, float yaw, float pitch, float headYaw) -
Method Summary
Modifier and TypeMethodDescriptionvoidDespawns the entityorg.cloudburstmc.math.vector.Vector3fx = Pitch, y = Yaw, z = HeadYawfloatfloatfloatinteractAt(com.github.steveice10.mc.protocol.data.game.entity.player.Hand hand) Simulates interacting with this entity at a specific click point.booleanisMarker()booleanisSmall()voidmoveAbsolute(org.cloudburstmc.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<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) voidsetBoots(org.cloudburstmc.protocol.bedrock.data.inventory.ItemData boots) voidsetChestplate(org.cloudburstmc.protocol.bedrock.data.inventory.ItemData chestplate) voidsetDisplayName(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<Optional<net.kyori.adventure.text.Component>, ?> entityMetadata) voidsetDisplayNameVisible(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata) voidsetHand(org.cloudburstmc.protocol.bedrock.data.inventory.ItemData hand) voidsetHeadRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) voidsetHelmet(org.cloudburstmc.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<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) voidsetLeftLegRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) voidsetLeggings(org.cloudburstmc.protocol.bedrock.data.inventory.ItemData leggings) voidsetOffHand(org.cloudburstmc.protocol.bedrock.data.inventory.ItemData offHand) voidsetRightArmRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) voidsetRightLegRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) voidvoidSends the Bedrock metadata to the clientMethods inherited from class org.geysermc.geyser.entity.type.LivingEntity
calculateAttribute, checkInteractWithNameTag, createHealthAttribute, getBoots, getChestplate, getHand, getHelmet, getLeggings, getOffHand, hasShield, initializeMetadata, interact, isAlive, isMaxFrozenState, isShaking, setBedPosition, setDimensions, setFreezing, setHealth, setLivingEntityFlags, setMaxFrozenState, setMaxHealth, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHandMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, as, getDefinition, getDirtyMetadata, getEntityId, getFlag, getGeyserId, getHeadYaw, getMaxAir, getMotion, getNametag, getPassengers, getPitch, getPosition, getSession, getUuid, getVehicle, getYaw, isOnGround, isSilent, isValid, javaId, moveAbsolute, moveRelative, playEntityEvent, playEntityEvent, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setClientSideSilent, setDefinition, setEntityId, setFlag, setFlags, setFlagsDirty, setGravity, setHeadYaw, setMotion, setOnGround, setPassengers, setPitch, setPose, setPosition, setRiderSeatPosition, setSilent, setUuid, setValid, setVehicle, setYaw, teleport, testInteraction, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updatePassengerOffsets, updatePositionAndRotation, updateRotation
-
Constructor Details
-
ArmorStandEntity
public ArmorStandEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, org.cloudburstmc.math.vector.Vector3f position, org.cloudburstmc.math.vector.Vector3f motion, float yaw, float pitch, float headYaw)
-
-
Method Details
-
spawnEntity
public void spawnEntity()- Overrides:
spawnEntityin classEntity
-
despawnEntity
public void despawnEntity()Description copied from class:EntityDespawns the entity- Overrides:
despawnEntityin classEntity
-
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(org.cloudburstmc.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<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) -
setBodyRotation
public void setBodyRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) -
setLeftArmRotation
public void setLeftArmRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) -
setRightArmRotation
public void setRightArmRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) -
setLeftLegRotation
public void setLeftLegRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) -
setRightLegRotation
public void setRightLegRotation(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.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(org.cloudburstmc.protocol.bedrock.data.inventory.ItemData helmet) - Overrides:
setHelmetin classLivingEntity
-
setChestplate
public void setChestplate(org.cloudburstmc.protocol.bedrock.data.inventory.ItemData chestplate) - Overrides:
setChestplatein classLivingEntity
-
setLeggings
public void setLeggings(org.cloudburstmc.protocol.bedrock.data.inventory.ItemData leggings) - Overrides:
setLeggingsin classLivingEntity
-
setBoots
public void setBoots(org.cloudburstmc.protocol.bedrock.data.inventory.ItemData boots) - Overrides:
setBootsin classLivingEntity
-
setHand
public void setHand(org.cloudburstmc.protocol.bedrock.data.inventory.ItemData hand) - Overrides:
setHandin classLivingEntity
-
setOffHand
public void setOffHand(org.cloudburstmc.protocol.bedrock.data.inventory.ItemData offHand) - Overrides:
setOffHandin classLivingEntity
-
setDisplayNameVisible
public void setDisplayNameVisible(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata) - Overrides:
setDisplayNameVisiblein classEntity
-
getBoundingBoxWidth
public float getBoundingBoxWidth()- Overrides:
getBoundingBoxWidthin classEntity
-
getBoundingBoxHeight
public float getBoundingBoxHeight()- Overrides:
getBoundingBoxHeightin classEntity
-
getYOffset
public float getYOffset()- Returns:
- the y offset required to position the name tag correctly
-
getBedrockRotation
public org.cloudburstmc.math.vector.Vector3f getBedrockRotation()Description copied from class:Entityx = Pitch, y = Yaw, z = HeadYaw- Overrides:
getBedrockRotationin classEntity- Returns:
- the bedrock rotation
-
isMarker
public boolean isMarker() -
isSmall
public boolean isSmall()
-