Skip to content

KillFeedEvent.Display

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

public static final class KillFeedEvent.Display extends CancellableEcsEvent

A cancellable ECS event dispatched on the dying entity as the final step of kill feed generation. Controls which players receive the kill feed message and what icon is displayed. If cancelled, no packets are sent.

public Display(@Nonnull Damage damage, @Nullable String icon, @Nonnull List<PlayerRef> broadcastTargets)

Creates the display event with the killing damage, an optional death icon, and the list of players to broadcast to.

@Nonnull
public List<PlayerRef> getBroadcastTargets()

Returns the mutable list of players who will receive the kill feed message.

@Nonnull
public Damage getDamage()

Returns the Damage event that caused the kill.

@Nullable
public String getIcon()

Returns the kill feed icon identifier, or null.

public void setIcon(@Nullable String icon)

Sets the kill feed icon identifier.

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