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