Class KillFeedEvent.KillerMessage

java.lang.Object
com.hypixel.hytale.component.system.EcsEvent
com.hypixel.hytale.component.system.CancellableEcsEvent
com.hypixel.hytale.server.core.modules.entity.damage.event.KillFeedEvent.KillerMessage
All Implemented Interfaces:
ICancellableEcsEvent
Enclosing class:
KillFeedEvent

public static final class KillFeedEvent.KillerMessage extends CancellableEcsEvent
A kill feed event that can be used to populate the killer's message.
  • Constructor Details

    • KillerMessage

      public KillerMessage(@Nonnull Damage damage, @Nonnull Ref<EntityStore> targetRef)
      Default Constructor for a KillFeedEvent.KillerMessage instance.
      Parameters:
      damage - The damage instance associated with the event.
      targetRef - The entity reference of the target entity.
  • Method Details

    • getDamage

      @Nonnull public Damage getDamage()
      Returns:
      the damage instance associated with the event.
    • getTargetRef

      @Nonnull public Ref<EntityStore> getTargetRef()
      Returns:
      the entity reference of the target entity.
    • setMessage

      public void setMessage(@Nullable Message message)
      Called to set the message to display as the killer.
      Parameters:
      message - The message to display as the killer.
    • getMessage

      @Nullable public Message getMessage()
      Returns:
      the message to display as the killer.