Class CitizenRemovedModEvent

All Implemented Interfaces:
IModEvent

public final class CitizenRemovedModEvent extends AbstractColonyModEvent
Event for when a citizen was removed from the colony.
  • Constructor Details

    • CitizenRemovedModEvent

      public CitizenRemovedModEvent(@NotNull @NotNull IColony colony, int citizenId, @NotNull net.minecraft.world.entity.Entity.RemovalReason reason)
      Citizen removed event.
      Parameters:
      colony - the colony related to the event.
      citizenId - the id of the citizen.
      reason - the reason the citizen was removed.
  • Method Details

    • getCitizenId

      public int getCitizenId()
      The id of the citizen.
      Returns:
      the id.
    • getRemovalReason

      @NotNull public net.minecraft.world.entity.Entity.RemovalReason getRemovalReason()
      The damage source that caused the citizen to die.
      Returns:
      the damage source.