Interface Witch

All Superinterfaces:
Attributable, net.kyori.adventure.audience.Audience, 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, Raider, RangedEntity, ServerOperator

public interface Witch extends Raider, RangedEntity
Represents a Witch
  • Method Details

    • isDrinkingPotion

      boolean isDrinkingPotion()
      Check if Witch is drinking a potion
      True if drinking a potion
    • getPotionUseTimeLeft

      int getPotionUseTimeLeft()
      Get time remaining (in ticks) the Witch is drinking a potion
      Time remaining (in ticks)
    • setPotionUseTimeLeft

      void setPotionUseTimeLeft(int ticks)
      Set time remaining (in ticks) that the Witch is drinking a potion.

      This only has an effect while the Witch is drinking a potion.

      ticks - Time in ticks remaining
      See Also:
    • getDrinkingPotion

      @Nullable @Nullable ItemStack getDrinkingPotion()
      Get the potion the Witch is drinking
      The potion the witch is drinking
    • setDrinkingPotion

      void setDrinkingPotion(@Nullable @Nullable ItemStack potion)
      Set the potion the Witch should drink
      potion - Potion to drink