Package zombie.config
Class IntegerConfigOption
java.lang.Object
zombie.config.ConfigOption
zombie.config.IntegerConfigOption
- Direct Known Subclasses:
EnumConfigOption,SandboxOptions.IntegerSandboxOption,ServerOptions.IntegerServerOption
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intprotected intFields inherited from class zombie.config.ConfigOption
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoublegetMax()doublegetMin()getType()intgetValue()booleanisValidString(String string) voidvoidvoidvoidsetValue(int int1) voidsetValueFromObject(Object object) Methods inherited from class zombie.config.ConfigOption
getName, getValueAsLuaString
-
Field Details
-
value
protected int value -
defaultValue
protected int defaultValue -
min
protected int min -
max
protected int max
-
-
Constructor Details
-
IntegerConfigOption
-
-
Method Details
-
getType
- Specified by:
getTypein classConfigOption
-
resetToDefault
public void resetToDefault()- Specified by:
resetToDefaultin classConfigOption
-
getMin
public double getMin() -
getMax
public double getMax() -
setDefaultToCurrentValue
public void setDefaultToCurrentValue()- Specified by:
setDefaultToCurrentValuein classConfigOption
-
parse
- Specified by:
parsein classConfigOption
-
getValueAsString
- Specified by:
getValueAsStringin classConfigOption
-
setValueFromObject
- Specified by:
setValueFromObjectin classConfigOption
-
getValueAsObject
- Specified by:
getValueAsObjectin classConfigOption
-
isValidString
- Specified by:
isValidStringin classConfigOption
-
setValue
public void setValue(int int1) -
getValue
public int getValue() -
getDefaultValue
public int getDefaultValue() -
getTooltip
- Specified by:
getTooltipin classConfigOption
-