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
body, boots, chestplate, hand, health, helmet, leggings, maxHealth, offhand, saddleFields inherited from class org.geysermc.geyser.entity.type.Entity
definition, dirtyMetadata, entityId, flags, geyserId, headYaw, motion, nametag, onGround, passengers, pitch, position, propertyManager, session, silent, uuid, valid, vehicle, yaw -
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(org.geysermc.mcprotocollib.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(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.ByteEntityMetadata entityMetadata) voidsetBodyRotation(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) voidsetBoots(org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack boots) voidsetChestplate(org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack chestplate) voidsetDisplayName(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<Optional<net.kyori.adventure.text.Component>, ?> entityMetadata) voidsetDisplayNameVisible(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata) voidsetHand(org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack hand) voidsetHeadRotation(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) voidsetHelmet(org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack helmet) protected voidsetInvisible(boolean value) Set a boolean - whether the entity is invisible or visiblevoidsetLeftArmRotation(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) voidsetLeftLegRotation(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) voidsetLeggings(org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack leggings) voidsetOffhand(org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack offHand) voidsetRightArmRotation(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) voidsetRightLegRotation(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) voidvoidSends the Bedrock metadata to the clientvoidupdateNametag(@Nullable Team team) Methods inherited from class org.geysermc.geyser.entity.type.LivingEntity
calculateAttribute, checkInteractWithNameTag, createHealthAttribute, getBody, getBoots, getChestplate, getHand, getHelmet, getLeggings, getOffhand, getSaddle, hasShield, initializeMetadata, interact, isAlive, isMaxFrozenState, isShaking, setBedPosition, setBody, setBoundingBoxHeight, setBoundingBoxWidth, setDimensionsFromPose, setFreezing, setHealth, setLivingEntityFlags, setMaxFrozenState, setMaxHealth, setParticles, setSaddle, setScale, setSpinAttack, switchHands, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHand, updateSaddled, useArmSwingAttackMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, getDefinition, getDirtyMetadata, getDisplayName, getEntityId, getFlag, getGeyserId, getHeadYaw, getMaxAir, getMotion, getNametag, getPassengers, getPitch, getPosition, getPropertyManager, getSession, getUuid, getVehicle, getYaw, isOnGround, isSilent, isValid, javaId, moveAbsolute, moveRelative, playEntityEvent, playEntityEvent, scoreVisibility, setAir, setAirSupply, setClientSideSilent, setDefinition, setEntityId, setFlag, setFlags, setFlagsDirty, setGliding, setGravity, setHeadYaw, setMotion, setNametag, setOnGround, setPassengers, setPitch, setPose, setPosition, setRiderSeatPosition, setSilent, setUuid, setValid, setVehicle, setYaw, standardDisplayName, teamIdentifier, teleport, testInteraction, updateBedrockEntityProperties, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updateNametag, 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 classLivingEntity
-
moveAbsolute
public void moveAbsolute(org.cloudburstmc.math.vector.Vector3f position, float yaw, float pitch, float headYaw, boolean isOnGround, boolean teleported) - Overrides:
moveAbsolutein classEntity
-
updateNametag
- Overrides:
updateNametagin classLivingEntity
-
setDisplayName
public void setDisplayName(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<Optional<net.kyori.adventure.text.Component>, ?> entityMetadata) - Overrides:
setDisplayNamein classEntity
-
setArmorStandFlags
public void setArmorStandFlags(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.ByteEntityMetadata entityMetadata) -
setHeadRotation
public void setHeadRotation(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) -
setBodyRotation
public void setBodyRotation(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) -
setLeftArmRotation
public void setLeftArmRotation(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) -
setRightArmRotation
public void setRightArmRotation(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) -
setLeftLegRotation
public void setLeftLegRotation(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) -
setRightLegRotation
public void setRightLegRotation(org.geysermc.mcprotocollib.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(org.geysermc.mcprotocollib.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.geysermc.mcprotocollib.protocol.data.game.item.ItemStack helmet) - Overrides:
setHelmetin classLivingEntity
-
setChestplate
public void setChestplate(org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack chestplate) - Overrides:
setChestplatein classLivingEntity
-
setLeggings
public void setLeggings(org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack leggings) - Overrides:
setLeggingsin classLivingEntity
-
setBoots
public void setBoots(org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack boots) - Overrides:
setBootsin classLivingEntity
-
setHand
public void setHand(org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack hand) - Overrides:
setHandin classLivingEntity
-
setOffhand
public void setOffhand(org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack offHand) - Overrides:
setOffhandin classLivingEntity
-
setDisplayNameVisible
public void setDisplayNameVisible(org.geysermc.mcprotocollib.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()
-