Class SheepMock

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.Creature, org.bukkit.entity.Damageable, org.bukkit.entity.Entity, org.bukkit.entity.LivingEntity, org.bukkit.entity.Mob, org.bukkit.entity.Sheep, org.bukkit.loot.Lootable, org.bukkit.material.Colorable, 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 SheepMock extends AnimalsMock implements org.bukkit.entity.Sheep
Mock implementation of a Sheep.
See Also:
  • Constructor Details

    • SheepMock

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

    • isSheared

      public boolean isSheared()
      Specified by:
      isSheared in interface org.bukkit.entity.Sheep
    • setSheared

      public void setSheared(boolean flag)
      Specified by:
      setSheared in interface org.bukkit.entity.Sheep
    • getColor

      @Nullable public @Nullable org.bukkit.DyeColor getColor()
      Specified by:
      getColor in interface org.bukkit.material.Colorable
    • setColor

      public void setColor(org.bukkit.DyeColor color)
      Specified by:
      setColor in interface org.bukkit.material.Colorable
    • getType

      public org.bukkit.entity.EntityType getType()
      Specified by:
      getType in interface org.bukkit.entity.Entity
      Overrides:
      getType in class EntityMock
    • 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