Class BossAlien<T extends org.bukkit.entity.Mob>
java.lang.Object
io.github.addoncommunity.galactifun.api.aliens.Alien<T>
io.github.addoncommunity.galactifun.api.aliens.BossAlien<T>
- Direct Known Subclasses:
TitanKing
Abstract class for an alien boss
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final org.bukkit.boss.BossBargetBossBarForEntity(org.bukkit.entity.LivingEntity entity) protected voidonBossHit(org.bukkit.event.entity.EntityDamageByEntityEvent e) This method only exists so it can be called beforeonHit(EntityDamageByEntityEvent)voidonDamage(org.bukkit.event.entity.EntityDamageEvent e) voidonDeath(org.bukkit.event.entity.EntityDeathEvent e) final voidonHit(org.bukkit.event.entity.EntityDamageByEntityEvent e) voidvoidonTick(org.bukkit.entity.Mob mob) voidvoidMethods inherited from class Alien
alienManager, attemptSpawn, canSpawnInLightLevel, clazz, getSpawnHeightOffset, hashCode, id, isRegistered, maxHealth, name, onAttack, onCastSpell, onEntityTick, onInteract, onShoot, onTarget, register, spawn, spawnChance
-
Constructor Details
-
BossAlien
@ParametersAreNonnullByDefault public BossAlien(Class<T> clazz, String id, String name, double maxHealth, double spawnChance, @Nonnull BossBarStyle style)
-
-
Method Details
-
onSpawn
-
onHit
-
onDamage
-
onBossHit
protected void onBossHit(@Nonnull org.bukkit.event.entity.EntityDamageByEntityEvent e) This method only exists so it can be called beforeonHit(EntityDamageByEntityEvent)- Parameters:
e- the event
-
onDeath
-
onUniqueTick
@OverridingMethodsMustInvokeSuper public void onUniqueTick()- Overrides:
onUniqueTickin classAlien<T extends org.bukkit.entity.Mob>
-
onTick
-
getBossBarForEntity
@Nonnull protected final org.bukkit.boss.BossBar getBossBarForEntity(org.bukkit.entity.LivingEntity entity) -
removeBossBars
public void removeBossBars()
-