public class MythicMob extends Object implements Comparable<MythicMob>
Constructor and Description |
---|
MythicMob(String file,
String internalName,
MythicConfig mc)
Constructor for mob types
|
Modifier and Type | Method and Description |
---|---|
ActiveMob |
applyMobOptions(ActiveMob am,
double level)
Applies the options relating to this mob type to an entity
|
ActiveMob |
applyMobVolatileOptions(ActiveMob am)
Applies all volatile options relating to this mob type to an entity
Volatile options must be applied after every server restart
|
ActiveMob |
applySpawnModifiers(ActiveMob am)
Applies Spawn Modifiers to the given mob for this mob type
Spawn Modifiers are only applied when the mob is spawned
|
int |
compareTo(MythicMob mm) |
boolean |
equals(Object o) |
void |
executeSignalSkill(String signal,
SkillMetadata data) |
void |
executeSkills(SkillTrigger cause,
SkillMetadata data) |
List<String> |
getAIGoalSelectors() |
List<String> |
getAITargetSelectors() |
PlaceholderDouble |
getArmor() |
protected double |
getArmor(ActiveMob am) |
double |
getAttackSpeed(double level) |
Optional<AbstractBossBar> |
getBossBar() |
int |
getBossBarRangeSquared() |
PlaceholderString |
getBossBarTitle() |
MythicConfig |
getConfig() |
PlaceholderDouble |
getDamage() |
double |
getDamage(ActiveMob am) |
boolean |
getDespawns()
Gets whether this mob type despawns naturally
|
PlaceholderString |
getDisplayName()
Gets the display name of the mob type
|
String |
getEntityType()
Gets the string name of the entity type of the mob type
|
String |
getFaction() |
String |
getFile()
Gets the file name the mob type is located in
|
PlaceholderDouble |
getHealth() |
double |
getHealth(ActiveMob am) |
String |
getInternalName()
Gets the internal name of the mob type
|
boolean |
getIsInteractable() |
boolean |
getIsInvincible() |
PlaceholderString |
getKillMessage() |
double |
getKnockbackResistance(double level) |
List<String> |
getLevelModifiers() |
double |
getMovementSpeed(ActiveMob am) |
BukkitEntityType |
getMythicEntity()
Gets the MythicEntity object for the mob type
|
double |
getPerLevelArmor() |
double |
getPerLevelDamage() |
double |
getPerLevelHealth()
Gets the health scaling value of the mob type
|
double |
getPerLevelPower() |
boolean |
getShowHealthInChat() |
boolean |
getShowNameOnDamaged() |
Queue<SkillMechanic> |
getSkills(SkillTrigger trigger) |
double |
getSpawnVelocityX() |
double |
getSpawnVelocityY() |
double |
getSpawnVelocityZ() |
boolean |
getThreatTableDecaysUnreachable() |
boolean |
getThreatTableUseDamageTaken() |
Queue<SkillMechanic> |
getTimerSkills() |
boolean |
hasFaction() |
boolean |
hasKillMessages() |
boolean |
hasSkills(SkillTrigger trigger) |
boolean |
isPersistent()
Gets whether this mob type is removed by commands
|
ActiveMob |
spawn(AbstractLocation location,
double level)
Spawns this mob type
|
ActiveMob |
spawn(AbstractLocation location,
double level,
SpawnReason reason)
Spawns this mob type
|
String |
toString() |
boolean |
usesBossBar() |
boolean |
usesImmunityTable() |
boolean |
usesThreatTable() |
protected String strMobType
protected BukkitEntityType mobType
protected Optional<MPetCompat.MiniaturePetType> mPetType
protected PlaceholderString displayName
protected String faction
protected PlaceholderDouble attrHealth
protected PlaceholderDouble attrDamage
protected PlaceholderDouble attrArmor
protected PlaceholderDouble attrMovementSpeed
protected double attrKnockbackResist
protected double attrFollowRange
protected double attrAttackSpeed
protected double lvlModDamage
protected double lvlModHealth
protected double lvlModArmor
protected double lvlModKBR
protected double lvlModPower
protected double lvlModSpeed
protected double lvlModAttackSpeed
protected boolean optionDespawn
protected boolean optionPersistent
protected boolean optionShowHealthInChat
protected boolean optionSilent
protected boolean optionNoAI
protected boolean optionGlowing
protected boolean optionInvincible
protected boolean optionCollidable
protected boolean optionNoGravity
protected boolean optionInteractable
protected Boolean optionLockPitch
protected boolean useBossBar
protected int bossBarRange
protected int bossBarRangeSq
protected PlaceholderString bossBarTitle
protected AbstractBossBar.BarColor bossBarColor
protected AbstractBossBar.BarStyle bossBarStyle
protected boolean bossBarCreateFog
protected boolean bossBarDarkenSky
protected boolean bossBarPlayMusic
protected double spawnVelocityX
protected double spawnVelocityXMax
protected double spawnVelocityY
protected double spawnVelocityYMax
protected double spawnVelocityZ
protected double spawnVelocityZMax
protected boolean spawnVelocityXRange
protected boolean spawnVelocityYRange
protected boolean spawnVelocityZRange
protected List<PlaceholderString> killMessages
public MythicMob(String file, String internalName, MythicConfig mc)
file
- internalName
- mc
- public MythicConfig getConfig()
public ActiveMob spawn(AbstractLocation location, double level)
location
- The location to spawn the mob atlevel
- The level of the mob to spawnActiveMob
public ActiveMob spawn(AbstractLocation location, double level, SpawnReason reason)
location
- The location to spawn the mob atlevel
- The level of the mob to spawnreason
- The reason the mob is being spawnedActiveMob
public ActiveMob applyMobOptions(ActiveMob am, double level)
am
- The ActiveMob instance to apply the options tolevel
- The mob level to apply and scale withActiveMob
public ActiveMob applyMobVolatileOptions(ActiveMob am)
am
- The ActiveMob instance to apply the options toActiveMob
public ActiveMob applySpawnModifiers(ActiveMob am)
am
- The ActiveMob instance to apply the options toActiveMob
public void executeSkills(SkillTrigger cause, SkillMetadata data)
public void executeSignalSkill(String signal, SkillMetadata data)
public Queue<SkillMechanic> getSkills(SkillTrigger trigger)
public boolean hasSkills(SkillTrigger trigger)
public Queue<SkillMechanic> getTimerSkills()
public String getInternalName()
public String getFile()
public PlaceholderString getDisplayName()
public String getEntityType()
public BukkitEntityType getMythicEntity()
BukkitEntityType
public boolean getDespawns()
public boolean isPersistent()
public double getPerLevelHealth()
public double getPerLevelDamage()
public double getPerLevelPower()
public PlaceholderDouble getArmor()
public double getPerLevelArmor()
protected double getArmor(ActiveMob am)
public PlaceholderDouble getDamage()
public double getDamage(ActiveMob am)
public double getMovementSpeed(ActiveMob am)
public double getKnockbackResistance(double level)
public double getAttackSpeed(double level)
public boolean hasFaction()
public String getFaction()
public PlaceholderDouble getHealth()
public double getHealth(ActiveMob am)
public boolean getIsInvincible()
public boolean usesThreatTable()
public boolean usesImmunityTable()
public boolean getThreatTableUseDamageTaken()
public boolean getThreatTableDecaysUnreachable()
public boolean hasKillMessages()
public PlaceholderString getKillMessage()
public double getSpawnVelocityX()
public double getSpawnVelocityY()
public double getSpawnVelocityZ()
public boolean getIsInteractable()
public boolean usesBossBar()
public int getBossBarRangeSquared()
public Optional<AbstractBossBar> getBossBar()
public PlaceholderString getBossBarTitle()
public int compareTo(MythicMob mm)
compareTo
in interface Comparable<MythicMob>
public boolean getShowHealthInChat()
public boolean getShowNameOnDamaged()
Copyright © 2020. All rights reserved.