Class TitanKing
java.lang.Object
io.github.addoncommunity.galactifun.api.aliens.Alien<org.bukkit.entity.Evoker>
io.github.addoncommunity.galactifun.api.aliens.BossAlien<org.bukkit.entity.Evoker>
io.github.addoncommunity.galactifun.base.aliens.TitanKing
Class for the Titan king, the boss bound on Titan
-
Constructor Summary
ConstructorsConstructorDescriptionTitanKing(String id, String name, double maxHealth, double spawnChance, BossBarStyle style, Alien<?> leech) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonBossHit(org.bukkit.event.entity.EntityDamageByEntityEvent e) This method only exists so it can be called beforeBossAlien.onHit(EntityDamageByEntityEvent)voidonCastSpell(org.bukkit.event.entity.EntitySpellCastEvent e) Methods inherited from class BossAlien
getBossBarForEntity, onDamage, onDeath, onHit, onSpawn, onTick, onUniqueTick, removeBossBarsMethods inherited from class Alien
alienManager, attemptSpawn, canSpawnInLightLevel, clazz, getSpawnHeightOffset, hashCode, id, isRegistered, maxHealth, name, onAttack, onEntityTick, onInteract, onShoot, onTarget, register, spawn, spawnChance
-
Constructor Details
-
TitanKing
public TitanKing(String id, String name, double maxHealth, double spawnChance, BossBarStyle style, Alien<?> leech)
-
-
Method Details
-
onCastSpell
public void onCastSpell(@Nonnull org.bukkit.event.entity.EntitySpellCastEvent e) - Overrides:
onCastSpellin classAlien<org.bukkit.entity.Evoker>
-
onBossHit
protected void onBossHit(@Nonnull org.bukkit.event.entity.EntityDamageByEntityEvent e) Description copied from class:BossAlienThis method only exists so it can be called beforeBossAlien.onHit(EntityDamageByEntityEvent)
-