Class CitizenDiedModEvent
java.lang.Object
com.minecolonies.api.eventbus.events.AbstractModEvent
com.minecolonies.api.eventbus.events.colony.AbstractColonyModEvent
com.minecolonies.api.eventbus.events.colony.citizens.AbstractCitizenModEvent
com.minecolonies.api.eventbus.events.colony.citizens.CitizenDiedModEvent
- All Implemented Interfaces:
IModEvent
Event for when a citizen died in any colony.
-
Constructor Summary
ConstructorsConstructorDescriptionCitizenDiedModEvent(@NotNull ICitizenData citizen, @NotNull net.minecraft.world.damagesource.DamageSource source) Citizen died event. -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.world.damagesource.DamageSourceThe damage source that caused the citizen to die.Methods inherited from class com.minecolonies.api.eventbus.events.colony.citizens.AbstractCitizenModEvent
getCitizenMethods inherited from class com.minecolonies.api.eventbus.events.colony.AbstractColonyModEvent
getColonyMethods inherited from class com.minecolonies.api.eventbus.events.AbstractModEvent
getEventId
-
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.
-