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

    • hasEgg

      boolean hasEgg()
      Gets whether the turtle has an egg
      Returns:
      Whether the turtle has an egg
    • isLayingEgg

      boolean isLayingEgg()
      Gets whether the turtle is laying an egg
      Returns:
      Whether the turtle is laying an egg
    • 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
    • setHasEgg

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