Class WarehouseModule

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

public class WarehouseModule extends AbstractBuildingModule implements IPersistentModule
Handler for the warehouse module.
  • Constructor Details

    • WarehouseModule

      public WarehouseModule()
      Construct a new grouped itemlist module with the unique list identifier.
  • Method Details

    • deserializeNBT

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

      public void serializeNBT(@NotNull net.minecraft.core.HolderLookup.Provider provider, 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.
    • serializeToView

      public void serializeToView(@NotNull @NotNull net.minecraft.network.RegistryFriendlyByteBuf 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.
    • getStorageUpgrade

      public int getStorageUpgrade()
      Get the upgrade level.
      Returns:
      the level.
    • incrementStorageUpgrade

      public void incrementStorageUpgrade()
      Increment the storage upgrade level.