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
ConstructorDescriptionCastOperator
(T1 from, T2 to, IValueCastRegistry.IMapping<T1, T2, V1, V2> mapping) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocation
protected String
void
loadTooltip
(List<net.minecraft.network.chat.Component> lines, 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, validateTypes
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
-
CastOperator
-
-
Method Details
-
getUniqueName
public net.minecraft.resources.ResourceLocation getUniqueName()- Specified by:
getUniqueName
in interfaceIOperator
- Overrides:
getUniqueName
in classOperatorBase
- Returns:
- The unique name for this operator, only used for internal storage.
-
getUnlocalizedType
- Specified by:
getUnlocalizedType
in classOperatorBase
-
getUnlocalizedPrefix
- Overrides:
getUnlocalizedPrefix
in classOperatorBase
-
loadTooltip
public void loadTooltip(List<net.minecraft.network.chat.Component> lines, boolean appendOptionalInfo) Description copied from interface:IOperator
Add tooltip lines for this aspect when hovered in a gui.- Specified by:
loadTooltip
in interfaceIOperator
- Overrides:
loadTooltip
in classOperatorBase
- Parameters:
lines
- The list to add lines to.appendOptionalInfo
- If shift-to-show info should be added.
-