Class TurtleMock

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, Animals, Breedable, Creature, Damageable, Entity, LivingEntity, Mob, Turtle, Lootable, Metadatable, Nameable, Permissible, ServerOperator, PersistentDataHolder, ProjectileSource

public class TurtleMock extends AnimalsMock implements Turtle
  • Constructor Details

    • TurtleMock

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

    • hasEgg

      public boolean hasEgg()
      Specified by:
      hasEgg in interface Turtle
    • isLayingEgg

      public boolean isLayingEgg()
      Specified by:
      isLayingEgg in interface Turtle
    • getHome

      @NotNull public @NotNull Location getHome()
      Specified by:
      getHome in interface Turtle
    • setHome

      public void setHome(@NotNull @NotNull Location location)
      Specified by:
      setHome in interface Turtle
    • isGoingHome

      public boolean isGoingHome()
      Specified by:
      isGoingHome in interface Turtle
    • isDigging

      public boolean isDigging()
      Specified by:
      isDigging in interface Turtle
    • setHasEgg

      public void setHasEgg(boolean hasEgg)
      Specified by:
      setHasEgg in interface Turtle
    • getType

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