Class EventDescriptionManager

java.lang.Object
com.minecolonies.core.colony.managers.EventDescriptionManager
All Implemented Interfaces:
IEventDescriptionManager, net.minecraftforge.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(@NotNull @NotNull IColonyEventDescription colonyEventDescription)
      Description copied from interface: IEventDescriptionManager
      Adds an event description.
      Specified by:
      addEventDescription in interface IEventDescriptionManager
      Parameters:
      colonyEventDescription - the event description to add.
    • serialize

      public void serialize(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf)
      Description copied from interface: IEventDescriptionManager
      Serialize to bytebuf.
      Specified by:
      serialize in interface IEventDescriptionManager
      Parameters:
      buf - the buf to serialize it to.
    • deserializeNBT

      public void deserializeNBT(@NotNull @NotNull net.minecraft.nbt.CompoundTag eventManagerNBT)
      Specified by:
      deserializeNBT in interface net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
    • serializeNBT

      public net.minecraft.nbt.CompoundTag serializeNBT()
      Specified by:
      serializeNBT in interface net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
    • computeNews

      public void computeNews()
      Description copied from interface: IEventDescriptionManager
      Compute news to print for the player.
      Specified by:
      computeNews in interface IEventDescriptionManager