Interface Wither

All Superinterfaces:
Attributable, net.kyori.adventure.audience.Audience, Boss, CommandSender, Creature, Damageable, Entity, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, net.kyori.adventure.pointer.Pointered, 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