Interface Turtle

All Superinterfaces:
Ageable, Animals, Attributable, Audience, Breedable, CommandSender, Creature, Damageable, Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, Pointered, ProjectileSource, ServerOperator, Sound.Emitter

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
    • isLayingEgg

      boolean isLayingEgg()
      Returns whether the turtle is currently laying an egg.
      Returns:
      whether the turtle is laying an egg