Class AgeableMock

All Implemented Interfaces:
MessageTarget, 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>, Attributable, CommandSender, Ageable, Creature, Damageable, Entity, LivingEntity, Mob, Lootable, Metadatable, Nameable, Permissible, ServerOperator, PersistentDataHolder, ProjectileSource
Direct Known Subclasses:
AnimalsMock

public class AgeableMock extends CreatureMock implements Ageable
Mock implementation of an Ageable.
See Also:
  • Constructor Details

    • AgeableMock

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

    • getAge

      public int getAge()
      Specified by:
      getAge in interface Ageable
    • setAge

      public void setAge(int age)
      Specified by:
      setAge in interface Ageable
    • setAgeLock

      public void setAgeLock(boolean lock)
      Specified by:
      setAgeLock in interface Ageable
    • getAgeLock

      public boolean getAgeLock()
      Specified by:
      getAgeLock in interface Ageable
    • setBaby

      public void setBaby()
      Specified by:
      setBaby in interface Ageable
    • setAdult

      public void setAdult()
      Specified by:
      setAdult in interface Ageable
    • isAdult

      public boolean isAdult()
      Specified by:
      isAdult in interface Ageable
    • canBreed

      public boolean canBreed()
      Specified by:
      canBreed in interface Ageable
    • setBreed

      public void setBreed(boolean breed)
      Specified by:
      setBreed in interface Ageable
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object
    • getSubType

      protected EntitySubType getSubType()
      Description copied from class: EntityMock
      Get the current subtype of the entity
      Overrides:
      getSubType in class EntityMock
      Returns:
      The current subtype of the entity