Interface IMinimumStockModule
- All Superinterfaces:
IBuildingModule,IHasDirty
- All Known Implementing Classes:
MinimumStockModule
Module for adding minimum stocks to buildings.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMinimumStock(net.minecraft.world.item.ItemStack itemStack, int quantity) Add the minimum stock of the warehouse to this building.booleanisStocked(net.minecraft.world.item.ItemStack stack) Check if this stack is stocked.voidremoveMinimumStock(net.minecraft.world.item.ItemStack itemStack) Remove the minimum stock.Methods inherited from interface com.minecolonies.api.colony.buildings.modules.IBuildingModule
getBuilding, getProducer, serializeToView, serializeToView, setBuilding, setProducerMethods inherited from interface com.minecolonies.api.util.IHasDirty
checkDirty, clearDirty, markDirty
-
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.
-