Skip to content

KillFeedEvent.DecedentMessage

Package: com.hypixel.hytale.server.core.modules.entity.damage.event

public static final class KillFeedEvent.DecedentMessage extends CancellableEcsEvent

A cancellable ECS event dispatched on the dying entity during kill feed generation. Allows systems listening on the victim to set a custom display message or cancel the kill feed entry for the decedent. If cancelled, no kill feed message is sent.

public DecedentMessage(@Nonnull Damage damage)

Creates the event with the killing damage.

public Damage getDamage()

Returns the Damage event that caused the kill.

public void setMessage(@Nullable Message message)

Sets the victim’s display message for the kill feed.

@Nullable
public Message getMessage()

Returns the victim’s display message, or null if not set.

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.