public interface CustomValue
fabric.mod.json.| Modifier and Type | Interface and Description |
|---|---|
static interface |
CustomValue.CvArray
Represents an
CustomValue.CvType.ARRAY value. |
static interface |
CustomValue.CvObject
Represents an
CustomValue.CvType.OBJECT value. |
static class |
CustomValue.CvType
The possible types of a custom value.
|
| Modifier and Type | Method and Description |
|---|---|
CustomValue.CvArray |
getAsArray()
Returns this value as an
CustomValue.CvType.ARRAY. |
boolean |
getAsBoolean()
Returns this value as a
CustomValue.CvType.BOOLEAN. |
Number |
getAsNumber()
Returns this value as a
CustomValue.CvType.NUMBER. |
CustomValue.CvObject |
getAsObject()
Returns this value as an
CustomValue.CvType.OBJECT. |
String |
getAsString()
Returns this value as a
CustomValue.CvType.STRING. |
CustomValue.CvType |
getType()
Returns the type of the value.
|
CustomValue.CvType getType()
CustomValue.CvObject getAsObject()
CustomValue.CvType.OBJECT.ClassCastException - if this value is not an objectCustomValue.CvArray getAsArray()
CustomValue.CvType.ARRAY.ClassCastException - if this value is not an arrayString getAsString()
CustomValue.CvType.STRING.ClassCastException - if this value is not a stringNumber getAsNumber()
CustomValue.CvType.NUMBER.ClassCastException - if this value is not a numberboolean getAsBoolean()
CustomValue.CvType.BOOLEAN.ClassCastException - if this value is not a boolean