Interface Destination

All Superinterfaces:
com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.displayname.DisplayNameable
All Known Subinterfaces:
ValidDestination
All Known Implementing Classes:
HomeDestination, InvalidDestination, SpawnDestination, StoredDestination, TeleportDestination

public sealed interface Destination extends com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.displayname.DisplayNameable permits ValidDestination, InvalidDestination
Represents an immutable location and a corresponding display name. A location is decomposed into validated, immutable fields, and reconstituted into a Bukkit Location on access. Static factory methods are provided to create new instances when reading from a datastore, or creating an instance from an existing Bukkit Location and a corresponding String display name.
  • Field Summary

    Fields inherited from interface com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.displayname.DisplayNameable

    VALID_DISPLAY_NAME
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from interface com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.displayname.DisplayNameable

    extractDisplayName
  • Method Details

    • getDisplayName

      String getDisplayName()
      Specified by:
      getDisplayName in interface com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.displayname.DisplayNameable