DynamicEntity
Inherited properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Stable identity for this logical model instance.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public double scaleModifier
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Whether the bones ride the underlying entity for viewers that track it.
Link copied to clipboard
@Nullable()
Link copied to clipboard
@Nullable()
Creates a DynamicEntity wrapping the given living entity, using an invisibility potion instead of hiding the entity from clients.
Link copied to clipboard
Where the model stays while its death animation plays.
Link copied to clipboard
Gets the location of the model's body, facing the model's yaw: the mob's body yaw reached with turning inertia when
weightedTurning is on (see updateModelYaw), otherwise the body yaw itself.Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
How the model leans with its travel; upright by default.
Link copied to clipboard
Link copied to clipboard
When true, clients get an invisible Interaction entity over the model, so players click the model they see instead of the body's own box.
Link copied to clipboard
When true, the underlying entity's invisibility potion is cosmetic (used to hide the vanilla model while showing the custom one) and should NOT hide the custom model bones.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Whether a player could steer this mob: vanilla lets the first passenger of a saddled horse ride it.
Link copied to clipboard
Whether the model's position and rotation should be synced with the underlying entity.
Link copied to clipboard
When true, the entity stays hidden by default but each Java viewer of the model tracks it as an invisible, bare body (see SkeletonWatchers), so the display bones can ride it like a mount's.
Link copied to clipboard
Scales the mob so its saddle, the seat a vanilla rider steers it from, lands on the given seat bone at the model's rest pose: the bone's Blockbench origin, in blocks from the model's feet, at the model's own scale.
Link copied to clipboard
Hook invoked once the spawn path and display initialization have completed successfully, immediately before this entity is published to the tickable registry.
Link copied to clipboard
Subclasses undo any registry entry installed by a partial onSpawnComplete.
Link copied to clipboard
Takes the model off its entity and leaves the entity in the world, for another model to take its place.
Link copied to clipboard
Whether Java clients track the underlying entity, which its bones need in order to ride it.
Link copied to clipboard
Seats the player on the mob itself when it is a saddled horse nobody rides, as a vanilla rider who steers it.
Link copied to clipboard
When true, clients get an invisible Interaction entity over the model, so players click the model they see instead of the body's own box.
Link copied to clipboard
Link copied to clipboard
Faces the model toward a world position, aiming head bones independently at that position.
Link copied to clipboard
Sets whether the model's position and rotation should be synced with the underlying entity.
Link copied to clipboard
Sets how the model leans with its travel; null stands it upright again.
Link copied to clipboard
Inherited functions
Link copied to clipboard
Height of the entity the model is on, in blocks, or 0 without one.
Link copied to clipboard
Drops the fixed light set by setBrightnessOverride, so the bones take the light where they are again.
Link copied to clipboard
Inflicts damage on the entity based on the specified amount.
Applies damage to this entity as inflicted by the specified damager.
Applies damage to the current entity based on the attributes of the provided projectile (impact speed, base damage, and bow enchantments such as Power and Piercing).
Inflicts damage on this entity by a specified amount, attributed to the given damager.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Blocks the model is drawn above its entity's feet: none while it stands on them; for a model centred on its body, whatever puts the middle of its cubes on the body's middle, below the feet when the model is the taller.
Link copied to clipboard
The world-space lean the whole model takes about its middle, or null while it stands upright.
Link copied to clipboard
Blocks above the entity's feet that a body tilt turns about: the middle of the model's cubes at its current scale, where it is drawn.
Link copied to clipboard
Gets the location to use for bone transforms.
Link copied to clipboard
Blocks above the entity's feet where a box of this height standing for the model starts: at the feet, or for a model centred on its body, wherever centres the box on the body too.
Link copied to clipboard
The fixed block light of the bones, or -1 without an override.
Link copied to clipboard
The fixed sky light of the bones, or -1 without an override.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the effective view distance for this entity.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Blocks above the entity's feet of the model's lowest cube as drawn, at its current scale.
Link copied to clipboard
O(1) single-entity lookup against the live underlying-entity registry.
Link copied to clipboard
Stable identity for this logical model instance.
Link copied to clipboard
Blocks above the model's own feet of the middle of its cubes, at its current scale.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Authored nametag position, or a fallback above the model's hitbox.
Link copied to clipboard
Returns the name tag locations.
Link copied to clipboard
Link copied to clipboard
The entity this model's display bones ride, or null when they are placed freely.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the persistent tint set via setTintColor, or
null if no persistent tint has been applied.Link copied to clipboard
Link copied to clipboard
Gets the set of UUIDs of all viewers (players who can see the entity)
Link copied to clipboard
Checks if the specified animation exists in the animation component.
Link copied to clipboard
Whether setBrightnessOverride lights the bones at a fixed level.
Link copied to clipboard
Whether this model has its own view distance.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Whether hideFrom has hidden this model from the player.
Link copied to clipboard
Plays an animation as set by the string name.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Leans the whole model: a world-space rotation about the middle of its height, applied after it faces its heading and after its animations.
Link copied to clipboard
Lights every display bone at a fixed level instead of the light where it stands, as a glowing creature or a lantern needs.
Link copied to clipboard
Sets the cached bone transform location.
Link copied to clipboard
Draws the model with the middle of its cubes on the middle of its entity instead of standing on the entity's feet.
Link copied to clipboard
Link copied to clipboard
Clear gap in blocks at scale 1; scaled Java text scales both glyphs and spacing.
Link copied to clipboard
Lines are top-to-bottom; the last line remains at the model's name anchor.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets the callback to be triggered when a player contacts the hitbox of this entity.
Link copied to clipboard
Sets a callback to be invoked when the entity is left-clicked by a player.
Link copied to clipboard
Link copied to clipboard
Sets a callback that is triggered when the entity is right-clicked by a player.
Link copied to clipboard
Link copied to clipboard
Persistent tint applied via the leather-armor dye channel.
Link copied to clipboard
Link copied to clipboard
Overrides the plugin-wide default view distance for this single modeled entity.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Stops all currently running animations.
Link copied to clipboard
Shows Bedrock clients the base animation and the action layered over it; either may be null.