KillFeedEvent.KillerMessage
Package: com.hypixel.hytale.server.core.modules.entity.damage.event
public static final class KillFeedEvent.KillerMessage extends CancellableEcsEventA cancellable ECS event dispatched on the killer entity during kill feed generation. Allows systems listening on the killer to set a custom display message or cancel the kill feed entirely. If cancelled, no kill feed message is sent.
Constructor
Section titled “Constructor”public KillerMessage(@Nonnull Damage damage, @Nonnull Ref<EntityStore> targetRef)Creates the event with the killing damage and a reference to the killed entity.
Methods
Section titled “Methods”@Nonnullpublic Damage getDamage()Returns the Damage event that caused the kill.
@Nonnullpublic Ref<EntityStore> getTargetRef()Returns the reference to the killed entity.
public void setMessage(@Nullable Message message)Sets the killer’s display message for the kill feed.
@Nullablepublic Message getMessage()Returns the killer’s display message, or null if not set.
Related Types
Section titled “Related Types”- KillFeedEvent — parent class
- DeathSystems.KillFeed — dispatches this event
- Damage — the killing damage
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.