Class PositionedOperatorRecipeHandlerRecipeByOutput.Function
java.lang.Object
org.cyclops.integrateddynamics.core.evaluate.operator.PositionedOperatorRecipeHandler.Function
org.cyclops.integrateddynamics.core.evaluate.operator.PositionedOperatorRecipeHandlerRecipeByOutput.Function
- All Implemented Interfaces:
OperatorBase.IFunction
- Direct Known Subclasses:
PositionedOperatorRecipeHandlerRecipeByInput.Function
- Enclosing class:
- PositionedOperatorRecipeHandlerRecipeByOutput<T extends IValueType<V>,
V extends IValue>
public static class PositionedOperatorRecipeHandlerRecipeByOutput.Function
extends PositionedOperatorRecipeHandler.Function
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionevaluate
(OperatorBase.SafeVariablesGetter variables) Evaluate this function for the given input.protected com.google.common.cache.Cache<org.apache.commons.lang3.tuple.Pair<org.apache.commons.lang3.tuple.Pair<org.cyclops.cyclopscore.datastructure.DimPos,
net.minecraft.core.Direction>, ValueObjectTypeIngredients.ValueIngredients>, ValueObjectTypeRecipe.ValueRecipe> getCache()
protected org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients
getRecipeIngredients
(org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition recipeDefinition) protected boolean
validateIngredients
(org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients actualIngredients, org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients givenIngredients) Methods inherited from class org.cyclops.integrateddynamics.core.evaluate.operator.PositionedOperatorRecipeHandler.Function
getOperator, setOperator
-
Constructor Details
-
Function
public Function()
-
-
Method Details
-
evaluate
Description copied from interface:OperatorBase.IFunction
Evaluate this function for the given input.- Parameters:
variables
- The input variables holder.- Returns:
- The output value.
- Throws:
EvaluationException
- If an exception occurs while evaluating
-
validateIngredients
protected boolean validateIngredients(org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients actualIngredients, org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients givenIngredients) -
getCache
protected com.google.common.cache.Cache<org.apache.commons.lang3.tuple.Pair<org.apache.commons.lang3.tuple.Pair<org.cyclops.cyclopscore.datastructure.DimPos,net.minecraft.core.Direction>, getCache()ValueObjectTypeIngredients.ValueIngredients>, ValueObjectTypeRecipe.ValueRecipe> -
getRecipeIngredients
protected org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients getRecipeIngredients(org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition recipeDefinition)
-