Class WitchMock

All Implemented Interfaces:
MessageTarget, MockRangedEntity<WitchMock>, com.destroystokyo.paper.entity.RangedEntity, io.papermc.paper.entity.Frictional, io.papermc.paper.entity.Leashable, io.papermc.paper.persistence.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>, org.bukkit.attribute.Attributable, org.bukkit.command.CommandSender, org.bukkit.entity.Creature, org.bukkit.entity.Damageable, org.bukkit.entity.Enemy, org.bukkit.entity.Entity, org.bukkit.entity.LivingEntity, org.bukkit.entity.Mob, org.bukkit.entity.Monster, org.bukkit.entity.Raider, org.bukkit.entity.Witch, org.bukkit.loot.Lootable, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.permissions.Permissible, org.bukkit.permissions.ServerOperator, org.bukkit.persistence.PersistentDataHolder, org.bukkit.projectiles.ProjectileSource

public class WitchMock extends RaiderMock implements org.bukkit.entity.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 org.bukkit.entity.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 org.bukkit.entity.Witch
    • setPotionUseTimeLeft

      public void setPotionUseTimeLeft(int ticks)
      Specified by:
      setPotionUseTimeLeft in interface org.bukkit.entity.Witch
    • getDrinkingPotion

      @NotNull public @NotNull org.bukkit.inventory.ItemStack getDrinkingPotion()
      Specified by:
      getDrinkingPotion in interface org.bukkit.entity.Witch
    • setDrinkingPotion

      public void setDrinkingPotion(@Nullable @Nullable org.bukkit.inventory.ItemStack potion)
      Specified by:
      setDrinkingPotion in interface org.bukkit.entity.Witch
    • getCelebrationSound

      @NotNull public @NotNull org.bukkit.Sound getCelebrationSound()
      Specified by:
      getCelebrationSound in interface org.bukkit.entity.Raider
    • getType

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