Class PositionedAddonsNetworkIngredientsFilter<T>
java.lang.Object
org.cyclops.integrateddynamics.api.network.PositionedAddonsNetworkIngredientsFilter<T>
A data object for filter predicates for ingredient networks with their settings.
-
Constructor Summary
ConstructorsConstructorDescriptionPositionedAddonsNetworkIngredientsFilter(Predicate<T> filter, boolean applyToInsertions, boolean applyToExtractions, boolean allowAllIfFilterNotApplied) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleantestExtraction(T ingredient) Test the given ingredient for an insertion operation.booleantestInsertion(T ingredient) Test the given ingredient for an insertion operation.booleanTest the given ingredient for read-only and iteration operations.
-
Constructor Details
-
PositionedAddonsNetworkIngredientsFilter
-
-
Method Details
-
testInsertion
Test the given ingredient for an insertion operation.- Parameters:
ingredient- An ingredient to test.- Returns:
- If the operation is allowed.
-
testExtraction
Test the given ingredient for an insertion operation.- Parameters:
ingredient- An ingredient to test.- Returns:
- If the operation is allowed.
-
testView
Test the given ingredient for read-only and iteration operations.- Parameters:
ingredient- An ingredient to test.- Returns:
- If the operation is allowed.
-
getFilter
- Returns:
- The ingredient filter
-
isApplyToInsertions
public boolean isApplyToInsertions()- Returns:
- If the ingredient filter should be used for insertions.
-
isApplyToExtractions
public boolean isApplyToExtractions()- Returns:
- If the ingredient filter should be used for extractions.
-
isAllowAllIfFilterNotApplied
public boolean isAllowAllIfFilterNotApplied()- Returns:
- Determines what to do if insertion or extraction application is disabled. If this method returns true, then all insertions and/or extractions will be allowed when their respective application is disabled. If this method returns false, then no insertions and/or extractions will be allowed when their respective application is disabled.
-