Class Firestorm

java.lang.Object
io.github.addoncommunity.galactifun.api.aliens.Alien<org.bukkit.entity.Blaze>
io.github.addoncommunity.galactifun.base.aliens.Firestorm
All Implemented Interfaces:
org.bukkit.event.Listener

public final class Firestorm extends Alien<org.bukkit.entity.Blaze> implements org.bukkit.event.Listener
  • Constructor Details

    • Firestorm

      public Firestorm(@Nonnull String id, @Nonnull String name, double maxHealth, double spawnChance)
  • Method Details

    • onShoot

      public void onShoot(@Nonnull org.bukkit.event.entity.ProjectileLaunchEvent e)
      Overrides:
      onShoot in class Alien<org.bukkit.entity.Blaze>
    • onDamage

      public void onDamage(@Nonnull org.bukkit.event.entity.EntityDamageEvent e)
      Overrides:
      onDamage in class Alien<org.bukkit.entity.Blaze>
    • canSpawnInLightLevel

      protected boolean canSpawnInLightLevel(int lightLevel)
      Description copied from class: Alien
      This method returns whether the alien can spawn in the given light level. By default uses the Zombie light level conditions
      Overrides:
      canSpawnInLightLevel in class Alien<org.bukkit.entity.Blaze>
      Parameters:
      lightLevel - the light level of the block the alien is attempting to spawn on
      Returns:
      true if the alien can spawn in this light level, false otherwise