Interface Witch

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

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

    • isDrinkingPotion

      boolean isDrinkingPotion()
      Gets whether the witch is drinking a potion
      Returns:
      whether the witch is 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:
    • getDrinkingPotion

      @NotNull @NotNull 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