Interface ICitizenEventDescription
- All Superinterfaces:
IColonyEventDescription,net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
- All Known Implementing Classes:
AbstractCitizenEvent,CitizenBornEvent,CitizenDiedEvent,CitizenGrownUpEvent,CitizenSpawnedEvent,VisitorSpawnedEvent
Event description for citizen spawn/death events.
-
Method Summary
Modifier and TypeMethodDescriptionGets the name of the citizen causing this event.voidsetCitizenName(String name) Sets the name of the citizen causing this event.default StringBuilds the string to show in the colony events list.Methods inherited from interface com.minecolonies.api.colony.colonyEvents.descriptions.IColonyEventDescription
deserialize, getEventPos, getEventTypeId, getName, serialize, setEventPosMethods inherited from interface net.neoforged.neoforge.common.util.INBTSerializable
deserializeNBT, serializeNBT
-
Method Details
-
getCitizenName
String getCitizenName()Gets the name of the citizen causing this event.- Returns:
- the name of the citizen causing this event.
-
setCitizenName
Sets the name of the citizen causing this event.- Parameters:
name- the name of the citizen causing this event.
-
toDisplayString
Description copied from interface:IColonyEventDescriptionBuilds the string to show in the colony events list.- Specified by:
toDisplayStringin interfaceIColonyEventDescription- Returns:
- the string to show in the colony events list.
-