Class WarehouseRequestQueueModule

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

public class WarehouseRequestQueueModule extends AbstractBuildingModule implements IPersistentModule
The class of the citizen hut.
  • Constructor Details

    • WarehouseRequestQueueModule

      public WarehouseRequestQueueModule()
  • Method Details

    • deserializeNBT

      public void deserializeNBT(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(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(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.
    • addRequest

      public void addRequest(IToken<?> requestToken)
      Add request to warehouse queue.
      Parameters:
      requestToken - request to add.
    • getMutableRequestList

      public List<IToken<?>> getMutableRequestList()
      Get a mutable version of the request list.
      Returns:
      the mutable request list.