Class UniqueIdAdapter
java.lang.Object
com.winterhavenmc.library.messagebuilder.adapters.pipeline.accessors.identity.UniqueIdAdapter
- All Implemented Interfaces:
Accessor
Accessor for identifying objects with a unique
UUID.
This adapter supports Bukkit types that expose UUIDs directly, including:
EntityOfflinePlayerPlayerProfileWorld
It also supports any object implementing the Identifiable interface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.Accessor
Accessor.BuiltIn -
Field Summary
Fields inherited from interface com.winterhavenmc.library.messagebuilder.core.ports.pipeline.accessors.Accessor
UNKNOWN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAttempts to adapt the given object to anIdentifiableinstance.
-
Constructor Details
-
UniqueIdAdapter
public UniqueIdAdapter()
-
-
Method Details
-
adapt
Attempts to adapt the given object to anIdentifiableinstance.This method supports the following object types:
Identifiable— returned directlyEntity— adapts viagetUniqueId()OfflinePlayer— adapts viagetUniqueId()PlayerProfile— adapts viagetUniqueId()World— adapts viagetUID()
-