Interface IMinimumStockModule

All Superinterfaces:
IBuildingModule, IHasDirty
All Known Implementing Classes:
MinimumStockModule

public interface IMinimumStockModule extends IBuildingModule
Module for adding minimum stocks to buildings.
  • Method Details

    • removeMinimumStock

      void removeMinimumStock(net.minecraft.world.item.ItemStack itemStack)
      Remove the minimum stock.
      Parameters:
      itemStack - the stack to remove.
    • addMinimumStock

      void addMinimumStock(net.minecraft.world.item.ItemStack itemStack, int quantity)
      Add the minimum stock of the warehouse to this building.
      Parameters:
      itemStack - the itemStack to add.
      quantity - the quantity.
    • isStocked

      boolean isStocked(net.minecraft.world.item.ItemStack stack)
      Check if this stack is stocked.
      Parameters:
      stack - the stack to check.
      Returns:
      true if stocked.