PropEntity

public class PropEntity extends StaticEntity

Constructors

Link copied to clipboard
public void PropEntity(String entityID, Location spawnLocation)
public void PropEntity(String entityID, ArmorStand armorStand)

Types

Link copied to clipboard
public class PropEntityEvents implements Listener

Properties

Link copied to clipboard
Link copied to clipboard
public final static NamespacedKey propNamespacedKey

Inherited properties

Link copied to clipboard
Link copied to clipboard
protected Location cachedBoneTransformLocation
Link copied to clipboard
protected Location currentLocation
Link copied to clipboard
Link copied to clipboard
public String displayName
Link copied to clipboard
public final String entityID
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public boolean isDying
Whether the entity is currently dying.
Link copied to clipboard
public volatile boolean isRemoved
Link copied to clipboard
public final static Set<ModeledEntity> loadedModeledEntities
Link copied to clipboard
public final UUID modelInstanceId
Stable identity for this logical model instance.
Link copied to clipboard
Link copied to clipboard
public final StackedText nameplate
Link copied to clipboard
public double scaleModifier
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected Location spawnLocation
Link copied to clipboard
protected Entity underlyingEntity

Functions

Link copied to clipboard
public void applySolidify()
Link copied to clipboard
public String getCustomDataString(NamespacedKey customNamespacedKey)
Link copied to clipboard
public static HashMap<UUID, PropEntity> getPropEntities()
Link copied to clipboard
public static String getPropEntityID(ArmorStand armorStand)
Link copied to clipboard
public static boolean hasLoadedPropOnSameBlock(String entityID, Location location)
Link copied to clipboard
public boolean isPersistent()
Link copied to clipboard
public static boolean isPropEntity(ArmorStand armorStand)
Link copied to clipboard
public boolean isSolidify()
Link copied to clipboard
public boolean isVoxelize()
Link copied to clipboard
protected void onSpawnComplete()
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
protected void onSpawnFailed()
Subclasses undo any registry entry installed by a partial onSpawnComplete.
Link copied to clipboard
public static void onStartup()
Link copied to clipboard
public void permanentlyRemove()
Link copied to clipboard
public void remove()
public void remove(boolean showRealBlocks)
Link copied to clipboard
public static PropEntity respawnPropEntityFromArmorStand(String entityID, ArmorStand armorStand)
Link copied to clipboard
public void setCustomDataString(NamespacedKey customNamespacedKey, String data)
Link copied to clipboard
public void setPersistent(boolean persistent)
Link copied to clipboard
public void setPropBlocks(List<PropBlocks> propBlocks)
Sets the prop blocks for this entity.
Link copied to clipboard
public void setVoxelizeConfig(boolean voxelize, boolean solidify)
Link copied to clipboard
Shows the fake prop blocks to all current entity viewers.
Link copied to clipboard
public void showFakePropBlocksToPlayer(Player player)
Shows the fake prop blocks to a player.
Link copied to clipboard
Shows the real blocks to all current entity viewers.
Link copied to clipboard
public void showRealBlocksToPlayer(Player player)
Shows the real blocks to a player.
Link copied to clipboard
public static void shutdown()
Link copied to clipboard
public void spawn()
Link copied to clipboard
public static PropEntity spawnPropEntity(String entityID, Location spawnLocation)

Inherited functions

Link copied to clipboard
public void attack(LivingEntity target)
Performs an attack on the specified living entity target.
public void attack(LivingEntity target, double damage)
Attacks the specified target entity with a specified amount of damage.
Link copied to clipboard
@Nullable()
public static @Nullable() StaticEntity create(String entityID, Location targetLocation)
Link copied to clipboard
public void damage(double amount)
Inflicts damage on the entity based on the specified amount.
public void damage(Entity damager)
Applies damage to this entity as inflicted by the specified damager.
public boolean damage(Projectile projectile)
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).
public void damage(Entity damager, double amount)
Inflicts damage on this entity by a specified amount, attributed to the given damager.
Link copied to clipboard
protected void displayInitializer()
Link copied to clipboard
public Location getBoneTransformLocation()
Gets the location to use for bone transforms.
Link copied to clipboard
public String getDisplayName()
Link copied to clipboard
Returns the effective view distance for this entity.
Link copied to clipboard
public String getEntityID()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Location getLocation()
Link copied to clipboard
public static ModeledEntity getModeledEntity(Entity entity)
O(1) single-entity lookup against the live underlying-entity registry.
Link copied to clipboard
public UUID getModelInstanceId()
Stable identity for this logical model instance.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Location getNameplateLocation()
Authored nametag position, or a fallback above the model's hitbox.
Link copied to clipboard
public List<Bone> getNametagBones()
Returns the name tag locations.
Link copied to clipboard
public double getScaleModifier()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Location getSpawnLocation()
Link copied to clipboard
public Color getTintColor()
Returns the persistent tint set via setTintColor, or null if no persistent tint has been applied.
Link copied to clipboard
public Entity getUnderlyingEntity()
Link copied to clipboard
public HashSet<UUID> getViewers()
Gets the set of UUIDs of all viewers (players who can see the entity)
Link copied to clipboard
public World getWorld()
Link copied to clipboard
public boolean hasAnimation(String animationName)
Checks if the specified animation exists in the animation component.
Link copied to clipboard
public void hideUnderlyingEntity(Player player)
Link copied to clipboard
public boolean isDying()
Whether the entity is currently dying.
Link copied to clipboard
public boolean isRemoved()
Link copied to clipboard
public boolean playAnimation(String animationName, boolean blendAnimation, boolean loop)
Plays an animation as set by the string name.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public void setCachedBoneTransformLocation(Location location)
Sets the cached bone transform location.
Link copied to clipboard
public void setDisplayName(String displayName)
Link copied to clipboard
public void setDisplayNameLineGap(double gap)
Clear gap in blocks at scale 1; scaled Java text scales both glyphs and spacing.
Link copied to clipboard
public void setDisplayNameLines(List<String> lines)
Lines are top-to-bottom; the last line remains at the model's name anchor.
Link copied to clipboard
public void setDisplayNameScale(float scale)
Link copied to clipboard
public void setDisplayNameVisible(boolean visible)
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
Sets a callback that is triggered when the entity is right-clicked by a player.
Link copied to clipboard
public void setScaleModifier(double scaleModifier)
Link copied to clipboard
public ModeledEntity setTintColor(Color color)
Persistent tint applied via the leather-armor dye channel.
Link copied to clipboard
public void setUnderlyingEntity(Entity underlyingEntity)
Link copied to clipboard
Overrides the plugin-wide default view distance for this single modeled entity.
Link copied to clipboard
public void showUnderlyingEntity(Player player)
Link copied to clipboard
protected void shutdownRemove()
Link copied to clipboard
public void spawn(Location location)
public void spawn(Entity entity)
Link copied to clipboard
public void stopCurrentAnimations()
Stops all currently running animations.
Link copied to clipboard
public void teleport(Location location, boolean teleportUnderlyingEntity)
Teleports the entity represented by this ModeledEntity to the specified location.
Link copied to clipboard
public void tick(AbstractPacketBundle abstractPacketBundle)
Link copied to clipboard
public void updateBedrockAnimation(String animationName)