Class MushroomCowMock

All Implemented Interfaces:
MessageTarget, io.papermc.paper.entity.Frictional, io.papermc.paper.entity.Shearable, 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.Ageable, org.bukkit.entity.Animals, org.bukkit.entity.Breedable, org.bukkit.entity.Cow, org.bukkit.entity.Creature, org.bukkit.entity.Damageable, org.bukkit.entity.Entity, org.bukkit.entity.LivingEntity, org.bukkit.entity.Mob, org.bukkit.entity.MushroomCow, 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 MushroomCowMock extends CowMock implements org.bukkit.entity.MushroomCow
Mock implementation of a MushroomCow.
See Also:
  • Constructor Details

    • MushroomCowMock

      public MushroomCowMock(@NotNull @NotNull ServerMock server, @NotNull @NotNull UUID uuid)
      Constructs a new MushroomCowMock 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

    • hasEffectsForNextStew

      public boolean hasEffectsForNextStew()
      Specified by:
      hasEffectsForNextStew in interface org.bukkit.entity.MushroomCow
    • getEffectsForNextStew

      @NotNull public @NotNull List<org.bukkit.potion.PotionEffect> getEffectsForNextStew()
      Specified by:
      getEffectsForNextStew in interface org.bukkit.entity.MushroomCow
    • addEffectToNextStew

      public boolean addEffectToNextStew(@NotNull @NotNull org.bukkit.potion.PotionEffect effect, boolean overwrite)
      Specified by:
      addEffectToNextStew in interface org.bukkit.entity.MushroomCow
    • addEffectToNextStew

      public boolean addEffectToNextStew(@NotNull @NotNull io.papermc.paper.potion.SuspiciousEffectEntry suspiciousEffectEntry, boolean overwrite)
      Specified by:
      addEffectToNextStew in interface org.bukkit.entity.MushroomCow
    • removeEffectFromNextStew

      public boolean removeEffectFromNextStew(@NotNull @NotNull org.bukkit.potion.PotionEffectType type)
      Specified by:
      removeEffectFromNextStew in interface org.bukkit.entity.MushroomCow
    • hasEffectForNextStew

      public boolean hasEffectForNextStew(@NotNull @NotNull org.bukkit.potion.PotionEffectType type)
      Specified by:
      hasEffectForNextStew in interface org.bukkit.entity.MushroomCow
    • clearEffectsForNextStew

      public void clearEffectsForNextStew()
      Specified by:
      clearEffectsForNextStew in interface org.bukkit.entity.MushroomCow
    • getVariant

      @NotNull public @NotNull org.bukkit.entity.MushroomCow.Variant getVariant()
      Specified by:
      getVariant in interface org.bukkit.entity.MushroomCow
    • setVariant

      public void setVariant(@NotNull @NotNull org.bukkit.entity.MushroomCow.Variant variant)
      Specified by:
      setVariant in interface org.bukkit.entity.MushroomCow
    • getStewEffectDuration

      public int getStewEffectDuration()
      Specified by:
      getStewEffectDuration in interface org.bukkit.entity.MushroomCow
    • setStewEffectDuration

      public void setStewEffectDuration(int duration)
      Specified by:
      setStewEffectDuration in interface org.bukkit.entity.MushroomCow
    • getStewEffectType

      @Nullable public @Nullable org.bukkit.potion.PotionEffectType getStewEffectType()
      Specified by:
      getStewEffectType in interface org.bukkit.entity.MushroomCow
    • setStewEffect

      public void setStewEffect(@Nullable @Nullable org.bukkit.potion.PotionEffectType type)
      Specified by:
      setStewEffect in interface org.bukkit.entity.MushroomCow
    • getStewEffects

      @NotNull public @NotNull @Unmodifiable List<io.papermc.paper.potion.SuspiciousEffectEntry> getStewEffects()
      Specified by:
      getStewEffects in interface org.bukkit.entity.MushroomCow
    • setStewEffects

      public void setStewEffects(@NotNull @NotNull List<io.papermc.paper.potion.SuspiciousEffectEntry> effects)
      Specified by:
      setStewEffects in interface org.bukkit.entity.MushroomCow
    • getType

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

      public void shear(@NotNull net.kyori.adventure.sound.Sound.Source source)
      Specified by:
      shear in interface io.papermc.paper.entity.Shearable
    • readyToBeSheared

      public boolean readyToBeSheared()
      Specified by:
      readyToBeSheared in interface io.papermc.paper.entity.Shearable