Interface Turtle

All Superinterfaces:
Ageable, Animals, Attributable, net.kyori.adventure.audience.Audience, Breedable, CommandSender, Creature, Damageable, Entity, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, net.kyori.adventure.pointer.Pointered, ProjectileSource, ServerOperator

public interface Turtle extends Animals
Represents a turtle.
  • Method Details

    • getHome

      Get the turtle's home location
      Returns:
      Home location
    • setHome

      void setHome(@NotNull @NotNull Location location)
      Set the turtle's home location
      Parameters:
      location - Home location
    • isGoingHome

      boolean isGoingHome()
      Check if turtle is currently pathfinding to it's home
      Returns:
      True if going home
    • isDigging

      boolean isDigging()
      Get if turtle is digging to lay eggs
      Returns:
      True if digging
    • hasEgg

      boolean hasEgg()
      Get if turtle is carrying egg
      Returns:
      True if carrying egg
    • setHasEgg

      void setHasEgg(boolean hasEgg)
      Set if turtle is carrying egg
      Parameters:
      hasEgg - True if carrying egg