Class AbstractBuildingEvent

java.lang.Object
com.minecolonies.core.colony.eventhooks.AbstractEvent
com.minecolonies.core.colony.eventhooks.buildingEvents.AbstractBuildingEvent
All Implemented Interfaces:
IBuildingEventDescription, IColonyEventDescription, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
Direct Known Subclasses:
BuildingBuiltEvent, BuildingDeconstructedEvent, BuildingRepairedEvent, BuildingUpgradedEvent

public abstract class AbstractBuildingEvent extends AbstractEvent implements IBuildingEventDescription
The abstract event handling building/upgrading huts.
  • Constructor Details

    • AbstractBuildingEvent

      public AbstractBuildingEvent()
      Creates a new building event.
    • AbstractBuildingEvent

      public AbstractBuildingEvent(boolean includeInSummary, net.minecraft.core.BlockPos eventPos, String buildingName, int buildingLevel)
      Creates a new building event.
      Parameters:
      eventPos - the position of the hut block of the building.
      buildingName - the name of the building.
      buildingLevel - the level of the building after this event.
  • Method Details