Interface Ghast

All Superinterfaces:
Attributable, Audience, CommandSender, Damageable, Entity, Flying, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, Pointered, ProjectileSource, ServerOperator, Sound.Emitter

public interface Ghast extends Flying
Represents a Ghast.
  • Method Details

    • isCharging

      boolean isCharging()
      Returns whether the ghast is charging an attack.
      Returns:
      whether the ghast is charging an attack
    • setCharging

      void setCharging(boolean charging)
      Sets whether the ghast is charging an attack. This determines whether the client displays the charging animation.
      Parameters:
      charging - whether the ghast is charging an attack
    • getExplosionPower

      int getExplosionPower()
      Returns the explosion power of shot fireballs.
      Returns:
      explosion power of shot fireballs
    • setExplosionPower

      void setExplosionPower(int explosionPower)
      Sets the explosion power of shot fireballs.
      Parameters:
      explosionPower - explosion power of shot fireballs
      Throws:
      IllegalArgumentException - if the explosion power is less than 0 or greater than 127