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,Tickable
-
Field Summary
Fields inherited from class org.geysermc.geyser.entity.type.LivingEntity
dirtyHeadYaw, dirtyPitch, dirtyYaw, equipment, health, maxHealthFields inherited from class org.geysermc.geyser.entity.type.Entity
definition, dirtyMetadata, displayName, 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()voidmoveAbsoluteRaw(org.cloudburstmc.math.vector.Vector3f position, float yaw, float pitch, float headYaw, boolean isOnGround, boolean teleported) voidmoveRelativeRaw(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(GeyserItemStack boots) voidsetChestplate(GeyserItemStack 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(GeyserItemStack hand) voidsetHeadRotation(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<org.cloudburstmc.math.vector.Vector3f, ?> entityMetadata) voidsetHelmet(GeyserItemStack 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(GeyserItemStack leggings) voidsetOffhand(GeyserItemStack 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, canUseSlot, checkInteractWithNameTag, createHealthAttribute, getEquipment, getItemInSlot, getLerpPosition, getLerpSteps, getMainHandItem, getOffHandItem, hasBodyArmor, hasShield, initializeMetadata, interact, isAlive, isDirtyHeadYaw, isDirtyPitch, isDirtyYaw, isEquippableInSlot, isHolding, isMaxFrozenState, isShaking, moveAbsolute, moveRelative, setBedPosition, setBody, setBoundingBoxHeight, setBoundingBoxWidth, setDimensionsFromPose, setDirtyHeadYaw, setDirtyPitch, setDirtyYaw, setEquipment, setFreezing, setHealth, setLerpPosition, setLerpSteps, setLivingEntityFlags, setMaxFrozenState, setMaxHealth, setParticles, setPosition, setSaddle, setScale, setSpinAttack, shouldLerp, switchHands, tick, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHand, updateSaddled, useArmSwingAttackMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, doesJumpDismount, getDefinition, getDirtyMetadata, getDisplayName, getEntityId, getFlag, getGeyserId, getHeadYaw, getMaxAir, getMotion, getNametag, getPassengers, getPitch, getPosition, getPropertyManager, getSession, getUuid, getVehicle, getYaw, hasLeashesToDrop, isOnGround, isSilent, isValid, javaId, moveAbsolute, playEntityEvent, playEntityEvent, scoreVisibility, setAir, setAirSupply, setClientSideSilent, setDefinition, setEntityId, setFlag, setFlags, setFlagsDirty, setGliding, setGravity, setHeadYaw, setMotion, setNametag, setOnGround, setPassengers, setPitch, setPose, setRiderSeatPosition, setSilent, setSneaking, setSprinting, setUuid, setValid, setVehicle, setYaw, standardDisplayName, teamIdentifier, teleport, testInteraction, updateBedrockEntityProperties, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updateNametag, updatePassengerOffsets, updatePositionAndRotation, updatePropertiesBatched, updateRotationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.geyser.api.entity.type.GeyserEntity
updatePropertiesBatched, updateProperty
-
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
-
moveRelativeRaw
public void moveRelativeRaw(double relX, double relY, double relZ, float yaw, float pitch, float headYaw, boolean isOnGround) - Overrides:
moveRelativeRawin classEntity
-
moveAbsoluteRaw
public void moveAbsoluteRaw(org.cloudburstmc.math.vector.Vector3f position, float yaw, float pitch, float headYaw, boolean isOnGround, boolean teleported) - Overrides:
moveAbsoluteRawin 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
- Overrides:
setHelmetin classLivingEntity
-
setChestplate
- Overrides:
setChestplatein classLivingEntity
-
setLeggings
- Overrides:
setLeggingsin classLivingEntity
-
setBoots
- Overrides:
setBootsin classLivingEntity
-
setHand
- Overrides:
setHandin classLivingEntity
-
setOffhand
- 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()
-