Package io.lumine.mythic.api.mobs
Interface MythicMob
- All Superinterfaces:
Comparable<MythicMob>
- All Known Implementing Classes:
MobType
Represents a custom mob type
- Author:
- Ashijin
-
Method Summary
Modifier and TypeMethodDescriptionapplyMobOptions
(ActiveMob am, double level) Applies the options relating to this mob type to an entityApplies all volatile options relating to this mob type to an entity Volatile options must be applied after every server restartApplies Spawn Modifiers to the given mob for this mob type Spawn Modifiers are only applied when the mob is spawnedvoid
Rebuilds the menu itemvoid
executeSignalSkill
(String signal, SkillMetadata data) void
executeSkills
(SkillTrigger cause, SkillMetadata data) getArmor()
double
double
getAttackSpeed
(double level) int
double
Gets the method by which this mob despawnsGets the display name of the mob typeGets the entity type of the mobGets the string name of the entity type of the mob typegetFile()
Gets the file the mob type is located indouble
double
Gets the internal name of the mob typeboolean
boolean
double
getKnockbackResistance
(double level) int
int
int
getModel()
double
Gets the MythicEntity object for the mob typeint
getPack()
Gets the pack the mob is located indouble
double
double
Gets the health scaling value of the mob typedouble
double
boolean
boolean
getSkills
(SkillTrigger trigger) double
double
double
double
double
double
float
getStats()
boolean
boolean
boolean
boolean
boolean
hasSkills
(SkillTrigger trigger) boolean
boolean
boolean
void
setAttrArmor
(PlaceholderDouble value) void
setAttrDamage
(PlaceholderDouble value) void
setAttrHealth
(PlaceholderDouble value) void
void
setDisplayName
(PlaceholderString display) Sets the display name of the mob typevoid
Sets the entity type of the mobvoid
setFaction
(String value) default ActiveMob
spawn
(AbstractLocation location, double level) Spawns this mob typespawn
(AbstractLocation location, double level, SpawnReason reason) Spawns this mob typespawn
(AbstractLocation location, double level, SpawnReason reason, Consumer<org.bukkit.entity.Entity> prespawnFunc) Spawns this mob typespawn
(AbstractLocation location, double level, SpawnReason reason, Consumer<org.bukkit.entity.Entity> prespawnFunc, MythicSpawner spawner) boolean
boolean
boolean
Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getInternalName
String getInternalName()Gets the internal name of the mob type- Returns:
- String
-
getPack
Pack getPack()Gets the pack the mob is located in -
getFile
File getFile()Gets the file the mob type is located in- Returns:
- String
-
buildCache
void buildCache()Rebuilds the menu item -
getDisplayName
PlaceholderString getDisplayName()Gets the display name of the mob type- Returns:
- String
-
setDisplayName
Sets the display name of the mob type -
getEntityType
MythicEntityType getEntityType()Gets the entity type of the mob- Returns:
- MythicEntityType
-
setEntityType
Sets the entity type of the mob -
getEntityTypeString
String getEntityTypeString()Gets the string name of the entity type of the mob type- Returns:
- String
-
getMythicEntity
BukkitEntityType getMythicEntity()Gets the MythicEntity object for the mob type- Returns:
- MythicEntity
- See Also:
-
getDespawnMode
DespawnMode getDespawnMode()Gets the method by which this mob despawns- Returns:
- DespawnMode
-
getEggDisplay
String getEggDisplay() -
getModel
MobModel getModel() -
getDropTable
DropTable getDropTable() -
getEquipmentTable
DropTable getEquipmentTable() -
getOptionLockPitch
Boolean getOptionLockPitch() -
getDamageModifiers
-
getEntityDamageModifiers
-
isUsingTimers
boolean isUsingTimers() -
getNoDamageTicks
int getNoDamageTicks() -
getMaxAttackRange
int getMaxAttackRange() -
getMaxAttackableRange
int getMaxAttackableRange() -
getMaxThreatDistance
int getMaxThreatDistance() -
isUseCustomNameplate
boolean isUseCustomNameplate() -
getRepeatAllSkills
Boolean getRepeatAllSkills() -
getPreventOtherDrops
Boolean getPreventOtherDrops() -
getPreventRandomEquipment
Boolean getPreventRandomEquipment() -
getPreventLeashing
Boolean getPreventLeashing() -
getPreventRename
Boolean getPreventRename() -
getPreventEndermanTeleport
Boolean getPreventEndermanTeleport() -
getPreventItemPickup
Boolean getPreventItemPickup() -
getPreventSilverfishInfection
Boolean getPreventSilverfishInfection() -
getPreventSunburn
Boolean getPreventSunburn() -
getPreventExploding
Boolean getPreventExploding() -
getPreventMobKillDrops
Boolean getPreventMobKillDrops() -
getPreventTransformation
Boolean getPreventTransformation() -
getPreventMounts
Boolean getPreventMounts() -
getPassthroughDamage
Boolean getPassthroughDamage() -
getApplyInvisibility
Boolean getApplyInvisibility() -
getDigOutOfGround
Boolean getDigOutOfGround() -
getUsesHealthBar
Boolean getUsesHealthBar() -
getSpawnVelocityX
double getSpawnVelocityX() -
getSpawnVelocityXMax
double getSpawnVelocityXMax() -
getSpawnVelocityY
double getSpawnVelocityY() -
getSpawnVelocityYMax
double getSpawnVelocityYMax() -
getSpawnVelocityZ
double getSpawnVelocityZ() -
getSpawnVelocityZMax
double getSpawnVelocityZMax() -
getSpawnVelocityXRange
Boolean getSpawnVelocityXRange() -
getSpawnVelocityYRange
Boolean getSpawnVelocityYRange() -
getSpawnVelocityZRange
Boolean getSpawnVelocityZRange() -
getDisguise
String getDisguise() -
isFakePlayer
boolean isFakePlayer() -
getConfig
MythicConfig getConfig()- Returns:
- MythicConfig The configuration section for the mob
-
spawn
Spawns this mob type- Parameters:
location
- The location to spawn the mob atlevel
- The level of the mob to spawn- Returns:
- ActiveMob The instance of the spawned mob
- See Also:
-
spawn
Spawns this mob type- Parameters:
location
- The location to spawn the mob atlevel
- The level of the mob to spawnreason
- The reason the mob is being spawned- Returns:
- ActiveMob The instance of the spawned mob
- See Also:
-
spawn
ActiveMob spawn(AbstractLocation location, double level, SpawnReason reason, Consumer<org.bukkit.entity.Entity> prespawnFunc) Spawns this mob type- Parameters:
location
- The location to spawn the mob atlevel
- The level of the mob to spawnreason
- The reason the mob is being spawned- Returns:
- ActiveMob The instance of the spawned mob
- See Also:
-
spawn
ActiveMob spawn(AbstractLocation location, double level, SpawnReason reason, Consumer<org.bukkit.entity.Entity> prespawnFunc, MythicSpawner spawner) -
applyMobOptions
Applies the options relating to this mob type to an entity- Parameters:
am
- The ActiveMob instance to apply the options tolevel
- The mob level to apply and scale with- Returns:
- ActiveMob The updated ActiveMob instance
- See Also:
-
applyMobVolatileOptions
Applies all volatile options relating to this mob type to an entity Volatile options must be applied after every server restart- Parameters:
am
- The ActiveMob instance to apply the options to- Returns:
- ActiveMob The updated ActiveMob instance
- See Also:
-
applySpawnModifiers
Applies Spawn Modifiers to the given mob for this mob type Spawn Modifiers are only applied when the mob is spawned- Parameters:
am
- The ActiveMob instance to apply the options to- Returns:
- ActiveMob The updated ActiveMob instance
- See Also:
-
executeSkills
-
executeSignalSkill
-
getSkills
-
hasSkills
-
getTimerSkills
Queue<SkillMechanic> getTimerSkills() -
getAttrHealth
PlaceholderDouble getAttrHealth() -
setAttrHealth
-
getAttrDamage
PlaceholderDouble getAttrDamage() -
setAttrDamage
-
getAttrArmor
PlaceholderDouble getAttrArmor() -
setAttrArmor
-
getAttrMovementSpeed
PlaceholderDouble getAttrMovementSpeed() -
setAttrMovementSpeed
-
getPerLevelHealth
double getPerLevelHealth()Gets the health scaling value of the mob type- Returns:
- double
-
getPerLevelDamage
double getPerLevelDamage() -
getPerLevelPower
double getPerLevelPower() -
getArmor
PlaceholderDouble getArmor() -
getPerLevelArmor
double getPerLevelArmor() -
getArmor
-
getDamage
PlaceholderDouble getDamage() -
getDamage
-
getMovementSpeed
-
getReviveHealth
-
getFlyingSpeed
-
getKnockbackResistance
double getKnockbackResistance(double level) -
getAttackSpeed
double getAttackSpeed(double level) -
hasFaction
boolean hasFaction() -
getFaction
String getFaction() -
setFaction
-
getHealth
PlaceholderDouble getHealth() -
getHealth
-
getIsInvincible
boolean getIsInvincible() -
usesThreatTable
boolean usesThreatTable() -
usesImmunityTable
boolean usesImmunityTable() -
getThreatTableUseDamageTaken
boolean getThreatTableUseDamageTaken() -
getThreatTableDecaysUnreachable
boolean getThreatTableDecaysUnreachable() -
getLevelModifiers
-
getAIGoalSelectors
-
getAITargetSelectors
-
hasKillMessages
boolean hasKillMessages() -
getKillMessage
PlaceholderString getKillMessage() -
getIsInteractable
boolean getIsInteractable() -
usesBossBar
boolean usesBossBar() -
getBossBarRangeSquared
int getBossBarRangeSquared() -
getBossBar
Optional<AbstractBossBar> getBossBar() -
getBossBarTitle
PlaceholderString getBossBarTitle() -
getShowHealthInChat
boolean getShowHealthInChat() -
getShowNameOnDamaged
boolean getShowNameOnDamaged() -
getStats
Map<String,PlaceholderDouble> getStats() -
getSpeechBubbleOffset
float getSpeechBubbleOffset()
-