Class AnimalsMock

All Implemented Interfaces:
MessageTarget, io.papermc.paper.entity.Frictional, 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.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
Direct Known Subclasses:
AbstractHorseMock, AxolotlMock, BeeMock, ChickenMock, CowMock, FoxMock, FrogMock, GoatMock, OcelotMock, PandaMock, ParrotMock, PigMock, PolarBearMock, RabbitMock, SheepMock, TameableAnimalMock, TurtleMock

public class AnimalsMock extends AgeableMock implements org.bukkit.entity.Animals
Mock implementation of an Animals.
See Also:
  • Constructor Details

    • AnimalsMock

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

    • getBreedCause

      public UUID getBreedCause()
      Specified by:
      getBreedCause in interface org.bukkit.entity.Animals
    • setBreedCause

      public void setBreedCause(@Nullable @Nullable UUID uuid)
      Specified by:
      setBreedCause in interface org.bukkit.entity.Animals
    • isLoveMode

      public boolean isLoveMode()
      Specified by:
      isLoveMode in interface org.bukkit.entity.Animals
    • setLoveModeTicks

      public void setLoveModeTicks(int ticks)
      Specified by:
      setLoveModeTicks in interface org.bukkit.entity.Animals
    • getLoveModeTicks

      public int getLoveModeTicks()
      Specified by:
      getLoveModeTicks in interface org.bukkit.entity.Animals
    • isBreedItem

      public boolean isBreedItem(@NotNull @NotNull org.bukkit.inventory.ItemStack stack)
      Specified by:
      isBreedItem in interface org.bukkit.entity.Animals
    • isBreedItem

      public boolean isBreedItem(@NotNull @NotNull org.bukkit.Material material)
      Specified by:
      isBreedItem in interface org.bukkit.entity.Animals
    • getSpawnCategory

      @NotNull public @NotNull org.bukkit.entity.SpawnCategory getSpawnCategory()
      Specified by:
      getSpawnCategory in interface org.bukkit.entity.Entity
      Overrides:
      getSpawnCategory in class EntityMock
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class AgeableMock