Class BooleanDataField
java.lang.Object
com.palmergames.bukkit.towny.object.metadata.CustomDataField<Boolean>
com.palmergames.bukkit.towny.object.metadata.BooleanDataField
- All Implemented Interfaces:
Cloneable
-
Field Summary
Fields inherited from class com.palmergames.bukkit.towny.object.metadata.CustomDataField
label
-
Constructor Summary
ConstructorDescriptionBooleanDataField
(String key) BooleanDataField
(String key, Boolean value) BooleanDataField
(String key, Boolean value, String label) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Formats and colors the value of the custom data field object.Gets the type id for the given CustomDataField class.void
setValueFromString
(String strValue) Sets the value based on the given input.static String
typeID()
Methods inherited from class com.palmergames.bukkit.towny.object.metadata.CustomDataField
canParseFromString, equals, formatValueAsComp, getKey, getLabel, getLabelAsComp, getValue, hashCode, hasLabel, isValidType, serializeValueToString, setLabel, setValue, shouldDisplayInStatus, toString
-
Constructor Details
-
BooleanDataField
-
BooleanDataField
-
BooleanDataField
-
-
Method Details
-
getTypeID
Description copied from class:CustomDataField
Gets the type id for the given CustomDataField class. This value is attached to the class, and not a specific instance. Used for serialization purposes.- Specified by:
getTypeID
in classCustomDataField<Boolean>
- Returns:
- type id of the given CustomDataField class.
-
typeID
-
setValueFromString
Description copied from class:CustomDataField
Sets the value based on the given input. Used when admins want to edit metadata in-game.- Specified by:
setValueFromString
in classCustomDataField<Boolean>
- Parameters:
strValue
- input.
-
displayFormattedValue
Description copied from class:CustomDataField
Formats and colors the value of the custom data field object.- Specified by:
displayFormattedValue
in classCustomDataField<Boolean>
- Returns:
- the formatted value of this data field.
-
clone
- Specified by:
clone
in classCustomDataField<Boolean>
-