Class AttributeType.Numeric<C extends AttributeType.Numeric<C,T>,T extends Number>
java.lang.Object
zombie.entity.components.attributes.AttributeType
zombie.entity.components.attributes.AttributeType.Numeric<C,T>
- Direct Known Subclasses:
AttributeType.Byte
,AttributeType.Double
,AttributeType.Float
,AttributeType.Int
,AttributeType.Long
,AttributeType.Short
- Enclosing class:
AttributeType
public abstract static class AttributeType.Numeric<C extends AttributeType.Numeric<C,T>,T extends Number>
extends AttributeType
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class zombie.entity.components.attributes.AttributeType
AttributeType.Bool, AttributeType.Byte, AttributeType.Double, AttributeType.Enum<E extends Enum<E> & IOEnum>, AttributeType.EnumSet<E extends Enum<E> & IOEnum>, AttributeType.EnumStringSet<E extends Enum<E> & IOEnum>, AttributeType.Float, AttributeType.Int, AttributeType.Long, AttributeType.Numeric<C extends AttributeType.Numeric<C,
T>, T extends Number>, AttributeType.Short, AttributeType.String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Numeric
(short short0, String string0, T number, boolean boolean0, Attribute.UI.Display display, Attribute.UI.DisplayAsBar displayAsBar, String string1) -
Method Summary
Modifier and TypeMethodDescriptionabstract T
getMax()
abstract T
getMin()
protected AttributeType.Numeric.NumericVars
<T> getVars()
boolean
protected boolean
protected final AttributeType.Numeric
<C, T> abstract T
protected abstract boolean
withinBounds
(T var1) Methods inherited from class zombie.entity.components.attributes.AttributeType
getDisplayAsBar, getName, getNameUI, getTranslateKey, id, isDecimal, isHiddenUI, isNumeric, isReadOnly, toString
-
Constructor Details
-
Numeric
protected Numeric(short short0, String string0, T number, boolean boolean0, Attribute.UI.Display display, Attribute.UI.DisplayAsBar displayAsBar, String string1)
-
-
Method Details
-
getValueType
- Specified by:
getValueType
in classAttributeType
-
isRequiresValidation
protected boolean isRequiresValidation() -
getVars
-
getInitialValue
-
setBounds
-
hasBounds
public boolean hasBounds() -
validate
-
getMin
-
getMax
-
withinBounds
-