Class ExpeditionLogModule

java.lang.Object
com.minecolonies.api.colony.buildings.modules.AbstractBuildingModule
com.minecolonies.core.colony.buildings.modules.ExpeditionLogModule
All Implemented Interfaces:
IBuildingModule, IPersistentModule, IHasDirty

public class ExpeditionLogModule extends AbstractBuildingModule implements IPersistentModule
Building module that stores an expedition log
  • Constructor Details

    • ExpeditionLogModule

      public ExpeditionLogModule(@Nullable @Nullable net.minecraft.resources.ResourceLocation research)
  • Method Details

    • getLog

      @NotNull public @NotNull ExpeditionLog getLog()
    • serializeNBT

      public void serializeNBT(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound)
      Description copied from interface: IPersistentModule
      Serialize the module from a compound.
      Specified by:
      serializeNBT in interface IPersistentModule
      Parameters:
      compound - the compound.
    • deserializeNBT

      public void deserializeNBT(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound)
      Description copied from interface: IPersistentModule
      Deserialize the module.
      Specified by:
      deserializeNBT in interface IPersistentModule
      Parameters:
      compound - the nbt compound.
    • serializeToView

      public void serializeToView(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf)
      Description copied from interface: IBuildingModule
      Serialization method to send the module data to the client side.
      Specified by:
      serializeToView in interface IBuildingModule
      Parameters:
      buf - the buffer to write it to.