Class KillerAdapter
java.lang.Object
com.winterhavenmc.library.messagebuilder.pipeline.adapters.killer.KillerAdapter
- All Implemented Interfaces:
Adapter
Adapter that maps supported objects to the
Killable
interface for macro extraction.
This adapter enables the use of the {OBJECT.KILLER}
macro by wrapping objects
that can report who killed them. This includes:
- Custom plugin-defined objects implementing
Killable
LivingEntity
types from Bukkit, wheregetKiller()
is available
This adapter is commonly used to generate messages about deaths, such as kill feeds or death chest logs.
-
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