InstancedBossEntity

Constructors

Link copied to clipboard
public void InstancedBossEntity(CustomBossesConfigFields customBossesConfigFields, Location location, DungeonInstance dungeonInstance)
public void InstancedBossEntity(CustomBossesConfigFields customBossesConfigFields, Location location, MatchInstance matchInstance, int level)

Properties

Link copied to clipboard
Link copied to clipboard
public Set<Player> lockoutPlayers
Link copied to clipboard

Inherited 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
Link copied to clipboard
protected boolean bypassesProtections
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
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
Link copied to clipboard
protected EntityType entityType
Link copied to clipboard
protected Integer escapeMechanism
Link copied to clipboard
public double followDistance
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
public boolean isMount
Link copied to clipboard
protected boolean isNaturalEntity
Link copied to clipboard
protected Boolean isPersistent
Link copied to clipboard
public boolean isRespawning
Link copied to clipboard
public final double leashRadius
Link copied to clipboard
protected int level
Link copied to clipboard
protected LivingEntity livingEntity
Link copied to clipboard
protected LivingEntity livingEntityMount
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
Link copied to clipboard
public double movementSpeedAttribute
Link copied to clipboard
protected String name
Link copied to clipboard
protected List<Entity> nonEliteReinforcementEntities
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected Location persistentLocation
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected boolean randomLoot
Link copied to clipboard
public Location respawnOverrideLocation
Link copied to clipboard
protected Location spawnLocation
Link copied to clipboard
protected CreatureSpawnEvent.SpawnReason spawnReason
Link copied to clipboard
Link copied to clipboard
protected static HashSet<CustomBossEntity> trackableCustomBosses
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
Link copied to clipboard
protected String worldName

Functions

Link copied to clipboard
public static void add(String stringLocation, CustomBossesConfigFields customBossesConfigFields)
Link copied to clipboard
public static CustomBossEntity createInstancedBossEntity(String filename, Location location, MatchInstance matchInstance, int level)
Link copied to clipboard
Link copied to clipboard
public Set<Player> getLockoutPlayers()
Link copied to clipboard
Link copied to clipboard
public static List<InstancedBossEntity> initializeInstancedBosses(String blueprintWorldName, World newWorld, int playerCount, DungeonInstance dungeonInstance)
Link copied to clipboard
public void remove(RemovalReason removalReason)
Link copied to clipboard
public void setEntityLevel(int level)
Link copied to clipboard
public void setLockoutPlayers(Set<Player> lockoutPlayers)
Link copied to clipboard
public void setMaxHealth()
Link copied to clipboard
public void setNormalizedMaxHealth(int playerCount)
Link copied to clipboard
public static void shutdown()

Inherited 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 static void addToUpdatingDynamicLevels(CustomBossEntity customBossEntity)
Link copied to clipboard
public void announceSpawn()
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 checkLeash()
Link copied to clipboard
public void chunkLoad()
Runs on chunk load.
Link copied to clipboard
public abstract void chunkUnload()
Sets the behavior for chunk unloads
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
@Nullable()
public static CustomBossEntity createCustomBossEntity(String filename)
Link copied to clipboard
public static RegionalBossEntity createPermanentRegionalBossEntity(CustomBossesConfigFields customBossesConfigFields, Location spawnLocation)
Link copied to clipboard
@Nullable()
public static RegionalBossEntity createTemporaryRegionalBossEntity(String filename, Location spawnLocation)
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 forceRespawn()
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
Link copied to clipboard
Link copied to clipboard
public boolean getBypassesProtections()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Object getCustomData(NamespacedKey namespacedKey)
Returns the custom data the entity has
Link copied to clipboard
Link copied to clipboard
public double getDamageModifier(Material material)
Link copied to clipboard
public double getDamageMultiplier()
Link copied to clipboard
public Map<Player, Double> getDamagers()
Link copied to clipboard
public void getDynamicLevel(Location bossLocation)
Link copied to clipboard
public HashSet<ElitePower> getElitePowers()
Link copied to clipboard
public UUID getEliteUUID()
Elite UUID.
Link copied to clipboard
Link copied to clipboard
public double getFollowDistance()
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 double getLeashRadius()
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
@Nullable()
public LivingEntity getLivingEntityMount()
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
@Nullable()
public Entity getMountEntity()
Link copied to clipboard
public double getMovementSpeedAttribute()
Link copied to clipboard
public String getName()
Link copied to clipboard
Link copied to clipboard
public abstract Location getPersistentLocation()
Link copied to clipboard
Link copied to clipboard
public ElitePower getPower(ElitePower elitePower)
public ElitePower getPower(String elitePower)
Link copied to clipboard
public static RegionalBossEntity getRegionalBoss(CustomBossesConfigFields customBossesConfigFields, Location spawnLocation)
Link copied to clipboard
public static Collection<RegionalBossEntity> getRegionalBossEntities()
public static List<RegionalBossEntity> getRegionalBossEntities(CustomBossesConfigFields customBossesConfigFields)
Link copied to clipboard
Link copied to clipboard
public Location getRespawnOverrideLocation()
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 static HashSet<CustomBossEntity> getTrackableCustomBosses()
Link copied to clipboard
public LivingEntity getUnsyncedLivingEntity()
This LivingEntity represents the previous entity spawned by EliteMobs.
Link copied to clipboard
public abstract String getWorldName()
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 void initialize()
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 isDynamicLevel()
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 isMount()
Link copied to clipboard
public boolean isNaturalEntity()
Link copied to clipboard
public boolean isNormalizedCombat()
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 isRemoved()
Link copied to clipboard
public boolean isRespawning()
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 queueSpawn(boolean silent)
Link copied to clipboard
public void randomizePowers(EliteMobProperties eliteMobProperties)
Link copied to clipboard
Moves this live actor between config ownership buckets so the periodic saver cannot undo a fork.
Link copied to clipboard
public boolean referencesWorld(World world)
Adds the persistent location to the world references checked when a world unloads: bosses waiting out a chunk unload hold their last position through it.
Link copied to clipboard
public static void regionalBossesShutdown()
Link copied to clipboard
public static void regionalDataSaver()
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 removeSlow()
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 resetLivingEntity(LivingEntity livingEntity, CreatureSpawnEvent.SpawnReason spawnReason)
Link copied to clipboard
public void resetMaxHealth()
Link copied to clipboard
public void respawn()
Link copied to clipboard
protected final void restorePersistedSpawn(SpawnLifecycle.Context spawnContext)
Link copied to clipboard
public static void save()
Link copied to clipboard
public void saveNewLocation()
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 setBossMusic(CustomMusic bossMusic)
Link copied to clipboard
public void setBypassesProtections(boolean bypassesProtections)
Link copied to clipboard
public void setCombatGracePeriod(int delayInTicks)
Link copied to clipboard
public void setCustomBossesConfigFields(CustomBossesConfigFields customBossesConfigFields)
The customBossesConfigFields is not final, and changes if the boss has phases, loading the configuration from the phases as the fight goes along.
Link copied to clipboard
public void setCustomModel(CustomModel customModel)
Link copied to clipboard
public void setCustomSpawn(CustomSpawn customSpawn)
Link copied to clipboard
public void setDamageMultiplier(double damageMultiplier)
Link copied to clipboard
public void setDying(boolean dying)
Link copied to clipboard
public void setDynamicLevel(boolean dynamicLevel)
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 setEmPackage(EMPackage emPackage)
Link copied to clipboard
public void setFollowDistance(double followDistance)
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 setLeashRadius(int leashRadius)
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 setMinorVisualEffect(boolean minorVisualEffect)
Link copied to clipboard
public void setMount(boolean isMount)
Link copied to clipboard
public void setMovementSpeedAttribute(double movementSpeedAttribute)
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 setNormalizedCombat()
Link copied to clipboard
public void setNormalizedMaxHealth()
Link copied to clipboard
public void setOnRemoveTransitiveBlocks(List<TransitiveBlock> onRemoveTransitiveBlocks)
Link copied to clipboard
public void setOnSpawnTransitiveBlocks(List<TransitiveBlock> onSpawnTransitiveBlocks)
Link copied to clipboard
public void setPersistent(boolean bool)
Link copied to clipboard
public void setPersistentLocation(Location persistentLocation)
Link copied to clipboard
public void setRandomLoot(boolean randomLoot)
Link copied to clipboard
public void setRespawnOverrideLocation(Location respawnOverrideLocation)
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)
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 spawn(Location spawnLocation, boolean silent)
public void spawn(Location spawnLocation, int level, boolean silent)
public void spawn(boolean silent)
protected void spawn(SpawnLifecycle.Context spawnContext)
Link copied to clipboard
@Nullable()
public static RegionalBossEntity SpawnRegionalBoss(String configurationFilename, Location spawnLocation)
Used by third party plugins to spawn regional bosses (BetterStructures uses this)
Link copied to clipboard
public void spawnWithBody(Location location, Function<Consumer<LivingEntity>, LivingEntity> bodyFactory)
Native Minds provide the body; configuration and spawn lifecycle remain owned here.
Link copied to clipboard
public static void startUpdatingDynamicLevels()
Link copied to clipboard
public void syncPluginHealth(double health)
Link copied to clipboard
public void updatePersistentLocation(Location location)
Updates persistence without changing the authored route origin.
Link copied to clipboard
public abstract void worldLoad(World world)
Link copied to clipboard
public abstract void worldUnload()