KillFeedEvent.DecedentMessage
Package: com.hypixel.hytale.server.core.modules.entity.damage.event
public static final class KillFeedEvent.DecedentMessage extends CancellableEcsEventA 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.
Constructor
Section titled “Constructor”public DecedentMessage(@Nonnull Damage damage)Creates the event with the killing damage.
Methods
Section titled “Methods”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.
@Nullablepublic Message getMessage()Returns the victim’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.