PlayerDisguiseEntity
A modeled entity that visually replaces a player. The disguised Player is held as a direct reference — this class does NOT set the player as the underlyingEntity, so the modeled-entity-with-underlying registry, packet interaction entity, and RegisterModelEntity PDC tagging are all bypassed naturally (no special-casing needed in shared code).
Lifecycle is owned by DisguiseManager; instances should not be created or destroyed directly outside the manager or the public API.
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
Stable identity for this logical model instance.
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
Disguises must not spawn a packet interaction entity — the model is decorative and clicks should pass through to the underlying player.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sends an empty-equipment override to
viewer so the disguised player's armor / held items don't render on the viewer's screen.Link copied to clipboard
Re-applies the invisibility potion effect if this disguise originally applied it.
Link copied to clipboard
Re-sends the disguised player's actual equipment to
viewer so the client picks up what they're really wearing.Link copied to clipboard
Inherited functions
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
Gets the location to use for bone transforms.
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
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
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
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
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
Plays an animation as set by the string name.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets the cached bone transform location.
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