Package com.tccc.kos.ext.dispense
Class IntrinsicContainer
java.lang.Object
com.tccc.kos.ext.dispense.Container
com.tccc.kos.ext.dispense.IntrinsicContainer
Container that has a single ingredient ID and is marked as "intrinsic",
so that it will bypass all insertion filters. This also sets the lock flag
so once inserted it cannot be removed.
This is typically used to insert water/carb during postInstall()
of the assembly that contains water pumps.
- Since:
- 1.0
- Version:
- 2023-02-08
-
Constructor Summary
ConstructorsConstructorDescriptionIntrinsicContainer
(String id, String ingredientId) Creates a new intrinsic container with the specified ID and ingredient ID. -
Method Summary
Modifier and TypeMethodDescriptionboolean
This is an instrinsic ingredient.boolean
isLocked()
This container cannot be removed.Methods inherited from class com.tccc.kos.ext.dispense.Container
getFirstIngredientId, getId, getIngredientIds, getInsertTime, getMark, getSlice, getSlices, getSource, isSoldOut, setId, setMark, setSource
-
Constructor Details
-
IntrinsicContainer
Creates a new intrinsic container with the specified ID and ingredient ID.- Parameters:
id
- ID of the containeringredientId
- the ingredient ID
-
-
Method Details
-
isIntrinsic
public boolean isIntrinsic()This is an instrinsic ingredient.- Overrides:
isIntrinsic
in classContainer
-
isLocked
public boolean isLocked()This container cannot be removed.
-