Class CastOperator<T1 extends IValueType<V1>,T2 extends IValueType<V2>,V1 extends IValue,V2 extends IValue>
java.lang.Object
org.cyclops.integrateddynamics.core.evaluate.operator.OperatorBase
org.cyclops.integrateddynamics.core.evaluate.operator.CastOperator<T1,T2,V1,V2>
- All Implemented Interfaces:
IOperator
public class CastOperator<T1 extends IValueType<V1>,T2 extends IValueType<V2>,V1 extends IValue,V2 extends IValue>
extends OperatorBase
Base class for cast operators.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cyclops.integrateddynamics.core.evaluate.operator.OperatorBase
OperatorBase.IFunction, OperatorBase.SafeVariablesGetter -
Constructor Summary
ConstructorsConstructorDescriptionCastOperator(T1 from, T2 to, IValueCastRegistry.IMapping<T1, T2, V1, V2> mapping) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationprotected StringvoidloadTooltip(Consumer<net.minecraft.network.chat.Component> tooltipAdder, boolean appendOptionalInfo) Add tooltip lines for this aspect when hovered in a gui.Methods inherited from class org.cyclops.integrateddynamics.core.evaluate.operator.OperatorBase
constructInputVariables, evaluate, getConditionalOutputType, getFunction, getGlobalInteractNamePrefix, getInputTypes, getInteractName, getLocalizedNameFull, getModId, getOperatorName, getOutputType, getRenderPattern, getRequiredInputLength, getSymbol, getTranslationKey, getUnlocalizedCategoryName, getUnlocalizedCategoryPrefix, materialize, shouldAlsoPrefixLocalScope, toString, validateTypesMethods 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
-
CastOperator
-
-
Method Details
-
getUniqueName
public net.minecraft.resources.ResourceLocation getUniqueName()- Specified by:
getUniqueNamein interfaceIOperator- Overrides:
getUniqueNamein classOperatorBase- Returns:
- The unique name for this operator, only used for internal storage.
-
getUnlocalizedType
- Specified by:
getUnlocalizedTypein classOperatorBase
-
getUnlocalizedPrefix
- Overrides:
getUnlocalizedPrefixin classOperatorBase
-
loadTooltip
public void loadTooltip(Consumer<net.minecraft.network.chat.Component> tooltipAdder, boolean appendOptionalInfo) Description copied from interface:IOperatorAdd tooltip lines for this aspect when hovered in a gui.- Specified by:
loadTooltipin interfaceIOperator- Overrides:
loadTooltipin classOperatorBase- Parameters:
tooltipAdder- The list to add lines to.appendOptionalInfo- If shift-to-show info should be added.
-