Class CitizenDiedModEvent

All Implemented Interfaces:
IModEvent

public final class CitizenDiedModEvent extends AbstractCitizenModEvent
Event for when a citizen died in any colony.
  • Constructor Details

    • CitizenDiedModEvent

      public CitizenDiedModEvent(@NotNull @NotNull ICitizenData citizen, @NotNull @NotNull net.minecraft.world.damagesource.DamageSource source)
      Citizen died event.
      Parameters:
      citizen - the citizen related to the event.
      source - the damage source the citizen died from.
  • Method Details

    • getDamageSource

      @NotNull public @NotNull net.minecraft.world.damagesource.DamageSource getDamageSource()
      The damage source that caused the citizen to die.
      Returns:
      the damage source.