Package com.winterhavenmc.library.messagebuilder.adapters.pipeline.accessors.killer


package com.winterhavenmc.library.messagebuilder.adapters.pipeline.accessors.killer
Provides support for extracting killer information from entities or plugin-defined objects.

This package defines the Killable interface, which exposes a method to retrieve the killer of an object—typically a Player. This is useful in generating messages related to entity death, such as death messages or kill logs.

The KillerAdapter binds to objects that implement Killable, or to LivingEntity instances, which provide built-in killer tracking via getKiller().

Macros such as {OBJECT.KILLER} are replaced with the name of the killer, if resolvable. The adapter supports both online and offline players through the Entity abstraction, enabling broader compatibility.