Interface Witch

All Superinterfaces:
Attributable, Audience, CommandSender, Creature, Damageable, Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, 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
      Returns:
      True if drinking a potion
    • getPotionUseTimeLeft

      int getPotionUseTimeLeft()
      Get time remaining (in ticks) the Witch is drinking a potion
      Returns:
      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.

      Parameters:
      ticks - Time in ticks remaining
      See Also:
      isDrinkingPotion()
    • getDrinkingPotion

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

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