Class ZoglinMock

All Implemented Interfaces:
MessageTarget, Frictional, Leashable, 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>, Attributable, CommandSender, Ageable, Creature, Damageable, Enemy, Entity, LivingEntity, Mob, Monster, Zoglin, Lootable, Metadatable, Nameable, Permissible, ServerOperator, PersistentDataHolder, ProjectileSource

public class ZoglinMock extends MonsterMock implements Zoglin
Mock implementation of a Zoglin.
See Also:
  • Constructor Details

    • ZoglinMock

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

    • isBaby

      public boolean isBaby()
      Specified by:
      isBaby in interface Zoglin
    • setBaby

      public void setBaby(boolean isBaby)
      Specified by:
      setBaby in interface Zoglin
    • 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
    • getType

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