Class EventDescriptionManager
java.lang.Object
com.minecolonies.core.colony.managers.EventDescriptionManager
- All Implemented Interfaces:
IEventDescriptionManager,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
Manager for all colony related events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventDescription(@NotNull IColonyEventDescription colonyEventDescription) Adds an event description.voidCompute news to print for the player.voiddeserializeNBT(@NotNull net.minecraft.nbt.CompoundTag eventManagerNBT) voidserialize(@NotNull net.minecraft.network.FriendlyByteBuf buf) Serialize to bytebuf.net.minecraft.nbt.CompoundTag
-
Constructor Details
-
EventDescriptionManager
-
-
Method Details
-
addEventDescription
Description copied from interface:IEventDescriptionManagerAdds an event description.- Specified by:
addEventDescriptionin interfaceIEventDescriptionManager- Parameters:
colonyEventDescription- the event description to add.
-
serialize
public void serialize(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf) Description copied from interface:IEventDescriptionManagerSerialize to bytebuf.- Specified by:
serializein interfaceIEventDescriptionManager- Parameters:
buf- the buf to serialize it to.
-
deserializeNBT
public void deserializeNBT(@NotNull @NotNull net.minecraft.nbt.CompoundTag eventManagerNBT) - Specified by:
deserializeNBTin interfacenet.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
-
serializeNBT
public net.minecraft.nbt.CompoundTag serializeNBT()- Specified by:
serializeNBTin interfacenet.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
-
computeNews
public void computeNews()Description copied from interface:IEventDescriptionManagerCompute news to print for the player.- Specified by:
computeNewsin interfaceIEventDescriptionManager
-