Class EventDescriptionManager

java.lang.Object
com.minecolonies.core.colony.managers.EventDescriptionManager
All Implemented Interfaces:
IEventDescriptionManager, net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>

public class EventDescriptionManager extends Object implements IEventDescriptionManager
Manager for all colony related events.
  • Constructor Details

    • EventDescriptionManager

      public EventDescriptionManager(IColony colony)
  • Method Details

    • addEventDescription

      public void addEventDescription(IColonyEventDescription colonyEventDescription)
      Description copied from interface: IEventDescriptionManager
      Adds an event description.
      Specified by:
      addEventDescription in interface IEventDescriptionManager
      Parameters:
      colonyEventDescription - the event description to add.
    • getEventDescriptions

      public List<IColonyEventDescription> getEventDescriptions()
      Description copied from interface: IEventDescriptionManager
      Returns the current list of colony events.
      Specified by:
      getEventDescriptions in interface IEventDescriptionManager
      Returns:
      the list of colony events.
    • deserializeNBT

      public void deserializeNBT(@NotNull net.minecraft.core.HolderLookup.Provider provider, @NotNull @NotNull net.minecraft.nbt.CompoundTag eventManagerNBT)
      Specified by:
      deserializeNBT in interface net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
    • serializeNBT

      public net.minecraft.nbt.CompoundTag serializeNBT(@NotNull net.minecraft.core.HolderLookup.Provider provider)
      Specified by:
      serializeNBT in interface net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>