Interface Nameable

All Known Subinterfaces:
GameObject
All Known Implementing Classes:
GroundItem, Item, Npc, Player, SceneObject

public interface Nameable
Entity or snapshot with a definition/display name.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the captured display name.
    default boolean
    Reports whether a useful name was decoded.
  • Method Details

    • getName

      String getName()
      Returns the captured display name.
      Returns:
      captured display name, possibly blank when no definition was decoded
    • hasName

      default boolean hasName()
      Reports whether a useful name was decoded.
      Returns:
      true when getName() is non-null and non-blank