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
attributeScale, dirtyHeadYaw, dirtyPitch, dirtyYaw, equipment, health, maxHealthFields inherited from class org.geysermc.geyser.entity.type.Entity
bedrockDefinition, customName, customNameVisible, dirtyMetadata, entityId, flags, geyserId, headYaw, javaTypeDefinition, metadata, motion, nametag, offset, onGround, passengers, pitch, position, propertyManager, scale, session, silent, uuid, valid, vehicle, yaw -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.cloudburstmc.math.vector.Vector3fx = Pitch, y = Yaw, z = HeadYawvoidDespawns the entityfloatfloatfloatgetScale()floatinteractAt(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) voidsetCustomName(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<Optional<net.kyori.adventure.text.Component>, ?> entityMetadata) voidsetCustomNameVisible(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
applyScale, calculateAttribute, canUseSlot, checkInteractWithNameTag, createHealthAttribute, getEquipment, getItemInSlot, getLerpPosition, getLerpSteps, getMainHandItem, getOffHandItem, hasBodyArmor, hasShield, initializeMetadata, interact, isAlive, isDirtyHeadYaw, isDirtyPitch, isDirtyYaw, isEquippableInSlot, isHolding, isMaxFrozenState, isShaking, moveAbsolute, moveRelative, setAttributeScale, setBedPosition, setBody, setBoundingBoxHeight, setBoundingBoxWidth, setDimensionsFromPose, setDirtyHeadYaw, setDirtyPitch, setDirtyYaw, setEquipment, setFreezing, setHealth, setLerpPosition, setLerpSteps, setLivingEntityFlags, setMaxFrozenState, setMaxHealth, setParticles, setPassengers, setSaddle, setSpinAttack, shouldLerp, switchHands, tick, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHand, updateSaddled, useArmSwingAttackMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, bedrockDefinition, bedrockDefinition, bedrockPosition, definition, doesJumpDismount, getCustomBoundingBoxHeight, getCustomBoundingBoxWidth, getDirtyMetadata, getDisplayName, getEntityId, getFlag, getHeadYaw, getJavaTypeDefinition, getMaxAir, getMetadata, getMotion, getNametag, getOffset, getPassengers, getPitch, getPosition, getPropertyManager, getSession, getVehicle, getYaw, geyserId, hasLeashesToDrop, isCustomNameVisible, isOnGround, isSilent, isValid, javaId, moveAbsolute, offset, playEntityEvent, playEntityEvent, position, scoreVisibility, setAir, setAirSupply, setClientSideSilent, setCustomBoundingBoxHeight, setCustomBoundingBoxWidth, setEntityId, setFlag, setFlags, setFlagsDirty, setGliding, setGravity, setHeadYaw, setJavaTypeDefinition, setMotion, setNameEntityData, setNametag, setNametagAlwaysShow, setOffset, setOnGround, setPitch, setPose, setPosition, setRiderSeatPosition, setScale, setSilent, setSneaking, setSprinting, setValid, setVehicle, setYaw, standardDisplayName, teamIdentifier, teleport, testInteraction, update, updateBedrockEntityProperties, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updateNametag, updatePassengerOffsets, updatePositionAndRotation, updatePropertiesBatched, updateRotation, uuid, uuid, valueMethods 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
-
-
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
-
setCustomName
public void setCustomName(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<Optional<net.kyori.adventure.text.Component>, ?> entityMetadata) - Overrides:
setCustomNamein classLivingEntity
-
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
-
setCustomNameVisible
public void setCustomNameVisible(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata) - Overrides:
setCustomNameVisiblein 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
-
getScale
public float getScale() -
bedrockRotation
public org.cloudburstmc.math.vector.Vector3f bedrockRotation()Description copied from class:Entityx = Pitch, y = Yaw, z = HeadYaw- Overrides:
bedrockRotationin classEntity- Returns:
- the bedrock rotation
-
isMarker
public boolean isMarker() -
isSmall
public boolean isSmall()
-