Interface Ghast

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

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

    • isCharging

      boolean isCharging()
      Gets whether the Ghast is charging
      Returns:
      Whether the Ghast is charging
    • setCharging

      void setCharging(boolean flag)
      Sets whether the Ghast is charging
      Parameters:
      flag - Whether the Ghast is charging
    • 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