Class ValueTypeCategoryNumber
java.lang.Object
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeBase<V>
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeCategoryBase<IValue>
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeCategoryNumber
- All Implemented Interfaces:
IValueType<IValue>,IValueTypeCategory<IValue>,IValueTypeNamed<IValue>
public class ValueTypeCategoryNumber
extends ValueTypeCategoryBase<IValue>
implements IValueTypeNamed<IValue>
Value type category with values that are numbers.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cyclops.integrateddynamics.api.evaluate.variable.IValueType
IValueType.ValueTypeComparator -
Field Summary
Fields inherited from class org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeCategoryBase
elements -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IValuecastValue(IValueTypeNumber type, IValue value) getLowestType(IValueTypeNumber... types) protected IValueTypeNumberbooleangreaterThan(IVariable a, IVariable b) booleanMethods inherited from class org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeCategoryBase
correspondsTo, createLogicProgrammerElement, deserialize, getDefault, getElements, getModId, getTranslationKey, isCategory, serialize, toCompactStringMethods inherited from class org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeBase
canDeserialize, cast, getDisplayColor, getDisplayColorFormat, getTypeName, getTypeNamespace, getUniqueName, getUnlocalizedPrefix, isObject, loadTooltip, materialize, parseString, registerModelResourceLocation, toString, 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.variable.IValueType
canDeserialize, cast, correspondsTo, createLogicProgrammerElement, deserialize, deserializeValuePredicate, getDefault, getDisplayColor, getDisplayColorFormat, getTranslationKey, getTypeName, getUniqueName, getVariableItemOverrideModel, isCategory, isObject, loadTooltip, materialize, parseString, renderISTER, serialize, toCompactString, toString
-
Constructor Details
-
ValueTypeCategoryNumber
public ValueTypeCategoryNumber()
-
-
Method Details
-
getLowestType
-
castValue
protected IValue castValue(IValueTypeNumber type, IValue value) throws IValueCastRegistry.ValueCastException -
getType
- Throws:
EvaluationException
-
add
- Throws:
EvaluationException
-
subtract
- Throws:
EvaluationException
-
multiply
- Throws:
EvaluationException
-
divide
- Throws:
EvaluationException
-
max
- Throws:
EvaluationException
-
min
- Throws:
EvaluationException
-
increment
- Throws:
EvaluationException
-
decrement
- Throws:
EvaluationException
-
modulus
- Throws:
EvaluationException
-
greaterThan
- Throws:
EvaluationException
-
lessThan
- Throws:
EvaluationException
-
round
- Throws:
EvaluationException
-
ceil
- Throws:
EvaluationException
-
floor
- Throws:
EvaluationException
-
compact
- Throws:
EvaluationException
-
getName
- Specified by:
getNamein interfaceIValueTypeNamed<IValue>
-