EliteEntity

public class EliteEntity

Inheritors

Constructors

Link copied to clipboard
public void EliteEntity()
Functions as a placeholder for CustomBossEntity that haven't been initialized yet.
public void EliteEntity(LivingEntity livingEntity, int level, CreatureSpawnEvent.SpawnReason spawnReason)
This is the generic constructor used in most instances of natural elite mob generation

Properties

Link copied to clipboard
protected final HashMap<Player, Double> aggro
Threat is deliberately tracked separately from damage contribution.
Link copied to clipboard
protected int antiExploitPoints
Link copied to clipboard
protected boolean bypassesProtections
Link copied to clipboard
protected double damageMultiplier
Link copied to clipboard
protected final HashMap<Player, Double> damagers
Link copied to clipboard
protected double defaultMaxHealth
Link copied to clipboard
protected boolean eliteLoot
Link copied to clipboard
protected HashSet<ElitePower> elitePowers
Link copied to clipboard
Link copied to clipboard
protected final UUID eliteUUID
Link copied to clipboard
protected EntityType entityType
Link copied to clipboard
Link copied to clipboard
protected Double health
Link copied to clipboard
protected double healthMultiplier
Link copied to clipboard
protected boolean inAntiExploitCooldown
Link copied to clipboard
protected boolean inCombat
Link copied to clipboard
protected boolean inCombatGracePeriod
Link copied to clipboard
protected boolean inCooldown
Link copied to clipboard
protected boolean isNaturalEntity
Link copied to clipboard
protected Boolean isPersistent
Link copied to clipboard
protected int level
Link copied to clipboard
protected LivingEntity livingEntity
Link copied to clipboard
protected int majorPowerCount
Link copied to clipboard
protected boolean majorVisualEffect
Link copied to clipboard
protected double maxHealth
Link copied to clipboard
protected int minorPowerCount
Link copied to clipboard
protected boolean minorVisualEffect
Link copied to clipboard
protected String name
Link copied to clipboard
protected List<Entity> nonEliteReinforcementEntities
Link copied to clipboard
Link copied to clipboard
protected boolean randomLoot
Link copied to clipboard
protected Location spawnLocation
Link copied to clipboard
protected CreatureSpawnEvent.SpawnReason spawnReason
Link copied to clipboard
Link copied to clipboard
protected boolean triggeredAntiExploit
Link copied to clipboard
protected LivingEntity unsyncedLivingEntity
Link copied to clipboard
protected boolean vanillaLoot
Link copied to clipboard
protected boolean visualEffectObfuscated

Functions

Link copied to clipboard
public void addCustomData(@NotNull() NamespacedKey namespacedKey, Object object)
This is used for other plugins to register custom data into a boss for their own tracking
Link copied to clipboard
public void addDamager(Player player, double damage)
public void addDamager(Player player, double damage, SkillType progressionSkill, Double capturedLoudStrikes)

public void addDamager(Player player, double damage, SkillType progressionSkill)
Records reward damage and, when known, the weapon skill that actually produced it.
Link copied to clipboard
public void addGlobalReinforcement(CustomBossEntity customBossEntity)
Link copied to clipboard
public void addReinforcement(CustomBossEntity customBossEntity)
public void addReinforcement(Entity entity)
Link copied to clipboard
public void addTag(String tag)
Link copied to clipboard
public void addTags(List<String> tags)
Link copied to clipboard
public void addThreat(Player player, double threat)
Adds combat threat without inventing damage or reward contribution.
Link copied to clipboard
public void applyPowers(HashSet<PowersConfigFields> powersConfigFields)
Applies an explicit set of powers, as used by /em spawn elite <type> <level> <power>.
public void applyPowers(HashSet<PowersConfigFields> configFields, int availablePowerAmount)
Link copied to clipboard
protected final void beginRemovalCall()
Link copied to clipboard
protected final void callRemoveEventOnce(RemovalReason removalReason)
Publishes the terminal removal notification at most once.
Link copied to clipboard
public void clearDamagers()
Clears both reward contribution and combat threat for a fresh encounter.
Link copied to clipboard
public void clearForcedTarget()
public void clearForcedTarget(UUID playerId)
Link copied to clipboard
public void decrementAntiExploit(int value)
Link copied to clipboard
protected void discardSpawnBody(LivingEntity body)
Rolls back materialization without ending a persistent logical boss or losing its powers.
Link copied to clipboard
public void doCooldown()
Link copied to clipboard
public void doGlobalPowerCooldown(int ticks)
Link copied to clipboard
public boolean exists()
Link copied to clipboard
protected final void finishRemovalCall()
Link copied to clipboard
public void forceTarget(Player player, int durationTicks)
Temporarily pins target selection without conflating taunt threat with reward damage.
Link copied to clipboard
public void fullHeal()
Link copied to clipboard
public Map<Player, Double> getAggro()
Returns the accumulated threat used by elite target selection.
Link copied to clipboard
public boolean getBypassesProtections()
Link copied to clipboard
public Object getCustomData(NamespacedKey namespacedKey)
Returns the custom data the entity has
Link copied to clipboard
public double getDamageMultiplier()
Link copied to clipboard
public Map<Player, Double> getDamagers()
Link copied to clipboard
public HashSet<ElitePower> getElitePowers()
Link copied to clipboard
public UUID getEliteUUID()
Elite UUID.
Link copied to clipboard
Returns the live lease owner; spatial eligibility remains the aggro manager's concern.
Link copied to clipboard
Link copied to clipboard
public double getHealth()
Health is cached by EliteMobs for when health needs to be displayed when the LivingEntity isn't valid, but return the field from the LivingEntity when available
Link copied to clipboard
public double getHealthMultiplier()
Link copied to clipboard
public Boolean getIsPersistent()
Link copied to clipboard
public int getLevel()
Link copied to clipboard
public LivingEntity getLivingEntity()
Returns the LivingEntity currently being used by the EliteEntity.
Link copied to clipboard
public Location getLocation()
Link copied to clipboard
public int getMajorPowerCount()
Link copied to clipboard
public double getMaxHealth()
Link copied to clipboard
public int getMinorPowerCount()
Link copied to clipboard
public String getName()
Link copied to clipboard
public ElitePower getPower(ElitePower elitePower)
public ElitePower getPower(String elitePower)
Link copied to clipboard
public long getSharedCooldownRemainingTicks(String key)
Link copied to clipboard
public Map<SkillType, Double> getSkillDamageContributions(UUID playerId)
Immutable per-skill damage for one player in this encounter.
Link copied to clipboard
public Location getSpawnLocation()
Link copied to clipboard
public CreatureSpawnEvent.SpawnReason getSpawnReason()
Link copied to clipboard
Link copied to clipboard
public HashSet<String> getTags()
Link copied to clipboard
public LivingEntity getUnsyncedLivingEntity()
This LivingEntity represents the previous entity spawned by EliteMobs.
Link copied to clipboard
public boolean hasCustomData(NamespacedKey namespacedKey)
Checks if the specified namespacedKey is present for the boss
Link copied to clipboard
public boolean hasDamagers()
Link copied to clipboard
public boolean hasPower(PowersConfigFields mobPower)
public boolean hasPower(ElitePower mobPower)
Link copied to clipboard
protected final boolean hasSuspendedMindBody()
A serialized body will reattach to this session rather than being spawned again.
Link copied to clipboard
public boolean hasTag(String tag)
Link copied to clipboard
public void heal(double healAmount)
Link copied to clipboard
public void incrementAntiExploit(int value, String cause)
Link copied to clipboard
public void inheritAggroFrom(EliteEntity summoningEntity)
Copies threat, but not damage/reward contribution, from a summoning elite.
Link copied to clipboard
public boolean isAIActive()
Effective behavior state for power/anti-exploit gates, preserving the native hasAI contract.
Link copied to clipboard
public boolean isAIEnabled()
Logical AI state; controlled bodies retain native NoAI even while their behavior is running.
Link copied to clipboard
public boolean isAware()
Link copied to clipboard
public boolean isCustomBossEntity()
Link copied to clipboard
public boolean isDying()
Link copied to clipboard
public boolean isEliteLoot()
Link copied to clipboard
public boolean isEnderDragon()
Link copied to clipboard
public boolean isHealing()
Link copied to clipboard
public boolean isInAntiExploitCooldown()
Link copied to clipboard
public boolean isInCombat()
Link copied to clipboard
public boolean isInCombatGracePeriod()
Link copied to clipboard
public boolean isInCooldown()
Link copied to clipboard
public boolean isMajorVisualEffect()
Link copied to clipboard
public boolean isMinorVisualEffect()
Link copied to clipboard
public boolean isNaturalEntity()
Link copied to clipboard
public boolean isRandomLoot()
Link copied to clipboard
public boolean isReinforcementOrMount()
Whether this entity is a boss's reinforcement (summoned by another elite) or a boss's mount.
Link copied to clipboard
public boolean isScaledCombat()
Returns whether this entity uses scaled combat.
Link copied to clipboard
public boolean isSharedCooldownReady(String key)
Link copied to clipboard
public boolean isTriggeredAntiExploit()
Link copied to clipboard
public boolean isValid()
Returns true if the LivingEntity is exists and loaded.
Link copied to clipboard
public boolean isVanillaLoot()
Link copied to clipboard
public boolean isVisualEffectObfuscated()
Link copied to clipboard
public void randomizePowers(EliteMobProperties eliteMobProperties)
Link copied to clipboard
public boolean referencesWorld(World world)
Link copied to clipboard
public void remove(RemovalReason removalReason)
Link copied to clipboard
public void removeCustomData(NamespacedKey namespacedKey)
Removes custom data stored by plugins
Link copied to clipboard
public void removeReinforcement(CustomBossEntity customBossEntity)
Link copied to clipboard
public void removeTag(String tag)
Link copied to clipboard
public void removeTags(List<String> tags)
Moves the legacy obfuscation transition back through the actor-owned stance lifecycle.
Link copied to clipboard
public void resetMaxHealth()
Link copied to clipboard
public void setAIEnabled(boolean enabled)
Pauses movement/brain behavior without pausing the Lua power that may restore it.
Link copied to clipboard
public void setAware(boolean aware)
Awareness and AI are independent switches; either can hold a controlled brain paused.
Link copied to clipboard
public void setBypassesProtections(boolean bypassesProtections)
Link copied to clipboard
public void setCombatGracePeriod(int delayInTicks)
Link copied to clipboard
public void setDamageMultiplier(double damageMultiplier)
Link copied to clipboard
public void setDying(boolean dying)
Link copied to clipboard
public void setEliteLoot(boolean eliteLoot)
Link copied to clipboard
public void setElitePowers(Collection<ElitePower> elitePowers)
Link copied to clipboard
public void setHealing(boolean healing)
Link copied to clipboard
public void setHealth(double health)
Link copied to clipboard
public void setHealthMultiplier(double healthMultiplier)
Link copied to clipboard
Link copied to clipboard
public void setInCombat(boolean inCombat)
Link copied to clipboard
public void setInCooldown(boolean inCooldown)
Link copied to clipboard
public void setLevel(int level)
Link copied to clipboard
public void setLivingEntity(LivingEntity livingEntity, CreatureSpawnEvent.SpawnReason spawnReason)
Link copied to clipboard
public void setMajorVisualEffect(boolean majorVisualEffect)
Link copied to clipboard
public void setMaxHealth()
Link copied to clipboard
public void setMinorVisualEffect(boolean minorVisualEffect)
Link copied to clipboard
public void setName(EliteMobProperties eliteMobProperties)
public void setName(String name, boolean applyToLivingEntity)
Link copied to clipboard
public void setNameVisible(boolean isVisible)
Link copied to clipboard
public void setNaturalEntity(boolean isNaturalEntity)
Link copied to clipboard
public void setNormalizedMaxHealth()
Link copied to clipboard
public void setPersistent(boolean bool)
Link copied to clipboard
public void setRandomLoot(boolean randomLoot)
Link copied to clipboard
public void setSharedCooldown(String key, long ticks)
Link copied to clipboard
public void setSpawnLocation(Location spawnLocation)
Link copied to clipboard
public void setSummoningEntity(EliteEntity summoningEntity)
Link copied to clipboard
public void setTriggeredAntiExploit(boolean triggeredAntiExploit)
Link copied to clipboard
public void setUnsyncedLivingEntity(LivingEntity newEntity)
Link copied to clipboard
public void setVanillaLoot(boolean vanillaLoot)
Link copied to clipboard
public void setVisualEffectObfuscated(boolean visualEffectObfuscated)
Link copied to clipboard
public void syncPluginHealth(double health)