Package zombie.config
Class DoubleConfigOption
java.lang.Object
zombie.config.ConfigOption
zombie.config.DoubleConfigOption
- Direct Known Subclasses:
SandboxOptions.DoubleSandboxOption
,ServerOptions.DoubleServerOption
,WorldMapRenderer.WorldMapDoubleOption
-
Field Summary
Modifier and TypeFieldDescriptionprotected double
protected double
protected double
protected double
Fields inherited from class zombie.config.ConfigOption
name
-
Constructor Summary
ConstructorDescriptionDoubleConfigOption
(String string, double double1, double double2, double double3) -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
getMax()
double
getMin()
getType()
double
getValue()
boolean
isValidString
(String string) void
void
void
void
setValue
(double double1) void
setValueFromObject
(Object object) Methods inherited from class zombie.config.ConfigOption
getName, getValueAsLuaString
-
Field Details
-
value
protected double value -
defaultValue
protected double defaultValue -
min
protected double min -
max
protected double max
-
-
Constructor Details
-
DoubleConfigOption
-
-
Method Details
-
getType
- Specified by:
getType
in classConfigOption
-
getMin
public double getMin() -
getMax
public double getMax() -
resetToDefault
public void resetToDefault()- Specified by:
resetToDefault
in classConfigOption
-
setDefaultToCurrentValue
public void setDefaultToCurrentValue()- Specified by:
setDefaultToCurrentValue
in classConfigOption
-
parse
- Specified by:
parse
in classConfigOption
-
getValueAsString
- Specified by:
getValueAsString
in classConfigOption
-
setValueFromObject
- Specified by:
setValueFromObject
in classConfigOption
-
getValueAsObject
- Specified by:
getValueAsObject
in classConfigOption
-
isValidString
- Specified by:
isValidString
in classConfigOption
-
setValue
public void setValue(double double1) -
getValue
public double getValue() -
getDefaultValue
public double getDefaultValue() -
getTooltip
- Specified by:
getTooltip
in classConfigOption
-