Class ActiveMob

java.lang.Object
io.lumine.mythic.core.mobs.ActiveMob
All Implemented Interfaces:
SkillCaster, StatSource

public class ActiveMob extends Object implements SkillCaster, StatSource
Represents an active instance of a MythicMob
Author:
Ashijin
  • Field Details

  • Constructor Details

  • Method Details

    • setupNew

      public void setupNew()
    • validateLoadedMob

      public boolean validateLoadedMob()
    • loadSaved

      public boolean loadSaved()
    • tick

      public void tick(long timer, int c)
    • getEntity

      public AbstractEntity getEntity()
      Specified by:
      getEntity in interface SkillCaster
    • setEntity

      public void setEntity(AbstractEntity e)
    • getType

      public MythicMob getType()
    • getDespawnMode

      public DespawnMode getDespawnMode()
    • setDespawnMode

      public void setDespawnMode(DespawnMode mode)
    • getDisplayName

      public String getDisplayName()
    • setDisplayName

      public void setDisplayName(String name)
    • getLocation

      public AbstractLocation getLocation()
      Specified by:
      getLocation in interface SkillCaster
    • setParent

      public void setParent(SkillCaster am)
    • getParent

      public io.lumine.utils.serialize.Optl<AbstractEntity> getParent()
    • addChild

      public void addChild(AbstractEntity entity)
      Specified by:
      addChild in interface SkillCaster
    • removeChild

      public void removeChild(AbstractEntity entity)
      Specified by:
      removeChild in interface SkillCaster
    • removeChild

      public void removeChild(UUID uuid)
    • getChildren

      public Collection<AbstractEntity> getChildren()
      Specified by:
      getChildren in interface SkillCaster
    • setOwner

      public void setOwner(UUID uuid)
    • removeOwner

      public void removeOwner()
    • setMount

      public void setMount(ActiveMob am)
    • remountType

      public void remountType()
    • getDamage

      public double getDamage()
    • getArmor

      public double getArmor()
    • setLevel

      public void setLevel(double level)
    • setPower

      public void setPower(float power)
    • getPower

      public float getPower()
      Specified by:
      getPower in interface SkillCaster
    • getUniqueId

      public UUID getUniqueId()
    • setStance

      public void setStance(String stance)
    • hasFaction

      public boolean hasFaction()
    • getFaction

      public String getFaction()
    • setFaction

      public ActiveMob setFaction(String faction)
    • incrementPlayerKills

      public void incrementPlayerKills()
    • importPlayerKills

      public void importPlayerKills(int pk)
    • setLastAggroCause

      public void setLastAggroCause(AbstractEntity aggro)
    • checkEquipment

      public void checkEquipment()
    • hasTarget

      public boolean hasTarget()
    • setTarget

      public void setTarget(AbstractEntity l)
    • changingTarget

      public boolean changingTarget()
    • getNewTarget

      public AbstractEntity getNewTarget()
    • voidTargetChange

      public void voidTargetChange()
    • resetTarget

      public void resetTarget()
    • getThreatTable

      public ActiveMob.ThreatTable getThreatTable()
    • hasThreatTable

      public boolean hasThreatTable()
    • importThreatTable

      public void importThreatTable(ActiveMob.ThreatTable tt)
    • hasImmunityTable

      public boolean hasImmunityTable()
    • save

      public void save()
    • despawn

      public void despawn()
    • remove

      public void remove()
    • setDespawned

      public void setDespawned()
    • setDespawnedSync

      public void setDespawnedSync()
    • setDead

      public void setDead()
    • setUnloaded

      public void setUnloaded()
    • unregister

      public void unregister()
    • unregister

      public void unregister(boolean sync)
    • setUsingDamageSkill

      public void setUsingDamageSkill(boolean b)
      Specified by:
      setUsingDamageSkill in interface SkillCaster
    • isUsingDamageSkill

      public boolean isUsingDamageSkill()
      Specified by:
      isUsingDamageSkill in interface SkillCaster
    • setLastDamageSkillAmount

      public void setLastDamageSkillAmount(double d)
    • getLastDamageSkillAmount

      public double getLastDamageSkillAmount()
    • setSpawner

      public void setSpawner(MythicSpawner ms)
    • remountSpawner

      public void remountSpawner()
    • signalMob

      public void signalMob(AbstractEntity trigger, String signal)
    • signalDamaged

      public void signalDamaged()
    • getAuraRegistry

      public AuraRegistry getAuraRegistry()
      Specified by:
      getAuraRegistry in interface SkillCaster
    • addBar

      public void addBar(String key, AbstractBossBar bar)
    • getBar

      public AbstractBossBar getBar(String key)
    • removeBar

      public void removeBar(String key)
    • updateBossBar

      public void updateBossBar()
    • unloadBossBars

      public void unloadBossBars()
    • getShowCustomNameplate

      public boolean getShowCustomNameplate()
    • setShowCustomNameplate

      public void setShowCustomNameplate(boolean b)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object