Interface Wither

All Superinterfaces:
Attributable, Audience, Boss, CommandSender, Creature, Damageable, Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, ProjectileSource, RangedEntity, ServerOperator

public interface Wither extends Monster, Boss, RangedEntity
Represents a Wither boss
  • Method Details

    • isCharged

      boolean isCharged()
      Returns:
      whether the wither is charged
    • getInvulnerableTicks

      int getInvulnerableTicks()
      Returns:
      ticks the wither is invulnerable for
    • setInvulnerableTicks

      void setInvulnerableTicks(int ticks)
      Sets for how long in the future, the wither should be invulnerable.
      Parameters:
      ticks - ticks the wither is invulnerable for
    • canTravelThroughPortals

      boolean canTravelThroughPortals()
      Returns:
      whether the wither can travel through portals
    • setCanTravelThroughPortals

      void setCanTravelThroughPortals(boolean value)
      Sets whether the wither can travel through portals.
      Parameters:
      value - whether the wither can travel through portals