Interface Nameable

All Known Subinterfaces:
BankEconomyHandler, EconomyHandler, Inviteable, InviteReceiver, InviteSender, TownBlockOwner
All Known Implementing Classes:
Account, BankAccount, EconomyAccount, Government, Nation, ObjectGroup, PlotGroup, Resident, Town, TownBlock, TownyObject, TownyServerAccount, TownyWorld

public interface Nameable
A simple interface to show that a class can be named, agnostic if its a TownyObject or not.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Gets the formatted name of the object.
    Get the name of the specified object
  • Method Details

    • getName

      String getName()
      Get the name of the specified object
      Returns:
      A String representing the name of the object.
    • getFormattedName

      default String getFormattedName()
      Gets the formatted name of the object.
      Returns:
      The formatted name.