Interface IBuildingEventDescription
- All Superinterfaces:
IColonyEventDescription,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
- All Known Implementing Classes:
AbstractBuildingEvent,BuildingBuiltEvent,BuildingDeconstructedEvent,BuildingRepairedEvent,BuildingUpgradedEvent
Event description for building events.
-
Method Summary
Modifier and TypeMethodDescriptionGets the name of the building type involved in this event.intgetLevel()Gets the level of the building after the event.voidsetBuildingName(String buildingName) Sets the building type for this event.voidsetLevel(int lvl) Sets the level of the building after the event.default StringBuilds the string to show in the colony events list.Methods inherited from interface com.minecolonies.api.colony.colonyEvents.descriptions.IColonyEventDescription
deserialize, getDay, getEventPos, getEventTypeId, getName, getSummaryTranslationKey, includeInSummary, serialize, setDay, setEventPosMethods inherited from interface net.minecraftforge.common.util.INBTSerializable
deserializeNBT, serializeNBT
-
Method Details
-
getBuildingName
String getBuildingName()Gets the name of the building type involved in this event.- Returns:
- the name of the building type involved in this event.
-
setBuildingName
Sets the building type for this event.- Parameters:
buildingName- the building type for this event.
-
getLevel
int getLevel()Gets the level of the building after the event.- Returns:
- the level of the building after the event.
-
setLevel
void setLevel(int lvl) Sets the level of the building after the event.- Parameters:
lvl- the level of the building after the 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.
-