Class GeneralIdentityOperator
java.lang.Object
org.cyclops.integrateddynamics.core.evaluate.operator.OperatorBase
org.cyclops.integrateddynamics.core.evaluate.operator.GeneralOperator
org.cyclops.integrateddynamics.core.evaluate.operator.GeneralIdentityOperator
- All Implemented Interfaces:
IOperator
A general identity operator.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cyclops.integrateddynamics.core.evaluate.operator.OperatorBase
OperatorBase.IFunction, OperatorBase.SafeVariablesGetter
-
Constructor Summary
ConstructorDescriptionGeneralIdentityOperator
(String symbol, String operatorName, String interactName) -
Method Summary
Modifier and TypeMethodDescriptiongetConditionalOutputType
(IVariable[] input) Get the output value type depending on the active input of the operator.net.minecraft.network.chat.MutableComponent
validateTypes
(IValueType[] input) Check the given input value types for this operator.Methods inherited from class org.cyclops.integrateddynamics.core.evaluate.operator.GeneralOperator
getUnlocalizedType
Methods inherited from class org.cyclops.integrateddynamics.core.evaluate.operator.OperatorBase
constructInputVariables, evaluate, getFunction, getGlobalInteractNamePrefix, getInputTypes, getInteractName, getLocalizedNameFull, getModId, getOperatorName, getOutputType, getRenderPattern, getRequiredInputLength, getSymbol, getTranslationKey, getUniqueName, getUnlocalizedCategoryName, getUnlocalizedCategoryPrefix, getUnlocalizedPrefix, loadTooltip, materialize, shouldAlsoPrefixLocalScope, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.cyclops.integrateddynamics.api.evaluate.operator.IOperator
getGlobalInteractName, getScopedInteractName
-
Constructor Details
-
GeneralIdentityOperator
-
-
Method Details
-
validateTypes
Description copied from interface:IOperator
Check the given input value types for this operator.- Specified by:
validateTypes
in interfaceIOperator
- Overrides:
validateTypes
in classOperatorBase
- Parameters:
input
- The ordered input value types.- Returns:
- An error or null if valid.
-
getConditionalOutputType
Description copied from interface:IOperator
Get the output value type depending on the active input of the operator.- Specified by:
getConditionalOutputType
in interfaceIOperator
- Overrides:
getConditionalOutputType
in classOperatorBase
- Parameters:
input
- The input that would be given during evaluation.- Returns:
- The type of value that is achieved when this operator is executed.
-