BossMania api
= BossMania.
api
;
Boss boss
= api.
createBoss
(
String name, EntityType entityType
)
;
- Create a boss.
Boss boss
= api.
getBosses
(
).
find
(
String name
)
;
- Find a boss by name.
AutoSpawn autospawn
= api.
createAutoSpawn
(
String name
)
;
- Create a autospawn.
AutoSpawn autospawn
= api.
getAutoSpawns
(
).
find
(
String name
)
;
- Find a autospawn by name.
api.
getActiveBosses
(
)
;
-
return list of the living bosses.
ActiveBoss activeboss
= api.
getBoss
(LivingEntity entity
)
;
- Find a ActiveBoss by LivingEntity.
ActiveBoss is a
class, that is used as boss spawned, it contains the LivingEntity instance and the Boss
class as type of boss.
boss.
getKey
(
)
-
return name of the boss.
boss.
getDisplayName
(
)
-
return the displayName of the boss.
(
This one is the string that the admin sets to specify what string should be displayed on boss head
).
boss.
getSize
(
)
-
return the size of the boss.
(Used only
for Slimes and Magma Cubes Bosses
).
boss.
getDroppedXp
(
)
-
return
int of dropped xp.
boss.
getStatsManager
(
)
-
return StatsManager
class that contains the stats of the boss.
boss.
getTargetType
(
)
-
return TargetType
class of the boss.
boss.
getDrops
(
)
-
return List
<Drop
> of drops.
boss.
getSkillManager
(
)
-
return SkillManager
class.
boss.
getCustomBossBar
(
)
-
return the CustomBossBar
class of the boss.
boss.
remove
(
)
- remove the boss from the storage.
MobStats mobStats
= boss.
getStatsManager
(
).
getMobStats
(
)
;
- Get the MobStats
class from a boss.
Equipment equipment
= boss.
getStatsManager
(
).
getEquipment
(
)
;
- Get the Equipment
class from a boss.
Hands hands
= boss.
getStatsManager
(
).
getHands
(
)
;
- Get the Hands
class from a boss.
Immunities immunities
= boss.
getStatsManager
(
).
getImmunities
(
)
;
- Get the Immunities
class from a boss.
immunities.
isImmuneToFire
(
)
;
- Get
boolean of
if the boss is immune to fire.
immunities.
isImmuneToExplosions
(
)
;
- Get
boolean of
if the boss is immune to explosions.
immunities.
isImmuneToProjectiles
(
)
;
- Get
boolean of
if the boss is immune to projectiles.
immunities.
isImmuneToSweepAttack
(
)
;
- Get
boolean of
if the boss is immune to SweepAttacks.
equipment.
getHelmet
(
)
-
return CustomItem helmet item from the boss.
equipment.
getChestplate
(
)
-
return CustomItem chestplate item from the boss.
equipment.
getLeggings
(
)
-
return CustomItem leggings item from the boss.
equipment.
getBoots
(
)
-
return CustomItem boots item from the boss.
mobStats.
getEntityType
(
)
-
return EntityType
enum.
mobStats.
getHealth
(
)
-
return the
double of boss health.
mobStats.
getDamage
(
)
-
return the
double of boss damage.
mobStats.
getMovementSpeed
(
)
-
return the
double of boss movement speed.
mobStats.
getFollowRange
(
)
-
return the
double of boss followRange.
mobStats.
getKnockbackResistance
-
return the
double of getKnockbackResistance.
hands.
getMainHand
(
)
-
return CustomItem item in the main hand of the boss.
hands.
getOffHand
(
)
-
return CustomItem item in the off hand of the boss.
autospawn.
getKey
(
)
-
return the name of the autospawn.
autospawn.
isEnabled
(
)
-
return
boolean of
if autospawn is enabled.
autospawn.
getLocation
(
)
-
return the location of the autospawn.
autospawn.
getSecondsPerSpawn
(
)
-
return the
int of how many seconds needs the mobs
for spawn.
autospawn.
getEntities
(
)
-
return a list
<String
> of Boss names.
autospawn.
restartInterval
(
)
- restart the task that spawns bosses.
autospawn.
cancel
(
)
- cancel the task that spawns bosses.
P.
S All the getters has a setter
Events
:
BossSpawnEvent
: Called when a boss spawns.
BossGetDamageFromPlayerEvent
: Called when a player hits a boss.
BossDeathEvent
: Called when a boss deaths.