Class GeneralConstantOperator
java.lang.Object
org.cyclops.integrateddynamics.core.evaluate.operator.OperatorBase
org.cyclops.integrateddynamics.core.evaluate.operator.GeneralOperator
org.cyclops.integrateddynamics.core.evaluate.operator.GeneralConstantOperator
- All Implemented Interfaces:
IOperator
A general constant operator.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cyclops.integrateddynamics.core.evaluate.operator.OperatorBase
OperatorBase.IFunction, OperatorBase.SafeVariablesGetter -
Constructor Summary
ConstructorsConstructorDescriptionGeneralConstantOperator(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.MutableComponentvalidateTypes(IValueType[] input) Check the given input value types for this operator.Methods inherited from class org.cyclops.integrateddynamics.core.evaluate.operator.GeneralOperator
getUnlocalizedTypeMethods 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cyclops.integrateddynamics.api.evaluate.operator.IOperator
getGlobalInteractName, getScopedInteractName
-
Constructor Details
-
GeneralConstantOperator
-
-
Method Details
-
validateTypes
Description copied from interface:IOperatorCheck the given input value types for this operator.- Specified by:
validateTypesin interfaceIOperator- Overrides:
validateTypesin classOperatorBase- Parameters:
input- The ordered input value types.- Returns:
- An error or null if valid.
-
getConditionalOutputType
Description copied from interface:IOperatorGet the output value type depending on the active input of the operator.- Specified by:
getConditionalOutputTypein interfaceIOperator- Overrides:
getConditionalOutputTypein classOperatorBase- Parameters:
input- The input that would be given during evaluation.- Returns:
- The type of value that is achieved when this operator is executed.
-