Class WitchMock

All Implemented Interfaces:
MessageTarget, MockRangedEntity<WitchMock>, RangedEntity, Frictional, Leashable, PersistentDataViewHolder, net.kyori.adventure.audience.Audience, net.kyori.adventure.pointer.Pointered, net.kyori.adventure.sound.Sound.Emitter, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, Attributable, CommandSender, Creature, Damageable, Enemy, Entity, LivingEntity, Mob, Monster, Raider, Witch, Lootable, Metadatable, Nameable, Permissible, ServerOperator, PersistentDataHolder, ProjectileSource

public class WitchMock extends RaiderMock implements Witch, MockRangedEntity<WitchMock>
Mock implementation of a Witch.
See Also:
  • Constructor Details

    • WitchMock

      public WitchMock(@NotNull @NotNull ServerMock server, @NotNull @NotNull UUID uuid)
      Constructs a new WitchMock on the provided ServerMock with a specified UUID.
      Parameters:
      server - The server to create the entity on.
      uuid - The UUID of the entity.
  • Method Details

    • isDrinkingPotion

      public boolean isDrinkingPotion()
      Specified by:
      isDrinkingPotion in interface Witch
    • setDrinkingPotion

      public void setDrinkingPotion(boolean drinking)
      Sets whether the witch is drinking a potion.
      Parameters:
      drinking - is the witch drinking a potion?
    • getPotionUseTimeLeft

      public int getPotionUseTimeLeft()
      Specified by:
      getPotionUseTimeLeft in interface Witch
    • setPotionUseTimeLeft

      public void setPotionUseTimeLeft(int ticks)
      Specified by:
      setPotionUseTimeLeft in interface Witch
    • getDrinkingPotion

      @NotNull public @NotNull ItemStack getDrinkingPotion()
      Specified by:
      getDrinkingPotion in interface Witch
    • setDrinkingPotion

      public void setDrinkingPotion(@Nullable @Nullable ItemStack potion)
      Specified by:
      setDrinkingPotion in interface Witch
    • getCelebrationSound

      @NotNull public @NotNull Sound getCelebrationSound()
      Specified by:
      getCelebrationSound in interface Raider
    • getType

      @NotNull public @NotNull EntityType getType()
      Specified by:
      getType in interface Entity
      Overrides:
      getType in class EntityMock