|
Quilt Loader 1
|
Represents a custom value in the fabric.mod.json.
More...
Classes | |
| interface | CvArray |
Represents an CvType#ARRAY value. More... | |
| interface | CvObject |
Represents an CvType#OBJECT value. More... | |
| enum | CvType |
| The possible types of a custom value. More... | |
Public Member Functions | |
| CvType | getType () |
| Returns the type of the value. | |
| CvObject | getAsObject () |
Returns this value as an CvType#OBJECT. | |
| CvArray | getAsArray () |
Returns this value as an CvType#ARRAY. | |
| String | getAsString () |
Returns this value as a CvType#STRING. | |
| Number | getAsNumber () |
Returns this value as a CvType#NUMBER. | |
| boolean | getAsBoolean () |
Returns this value as a CvType#BOOLEAN. | |
Represents a custom value in the fabric.mod.json.
| CvArray net.fabricmc.loader.api.metadata.CustomValue.getAsArray | ( | ) |
Returns this value as an CvType#ARRAY.
| ClassCastException | if this value is not an array |
Implemented in org.quiltmc.loader.impl.fabric.metadata.CustomValueImpl.
| boolean net.fabricmc.loader.api.metadata.CustomValue.getAsBoolean | ( | ) |
Returns this value as a CvType#BOOLEAN.
| ClassCastException | if this value is not a boolean |
Implemented in org.quiltmc.loader.impl.fabric.metadata.CustomValueImpl.
| Number net.fabricmc.loader.api.metadata.CustomValue.getAsNumber | ( | ) |
Returns this value as a CvType#NUMBER.
| ClassCastException | if this value is not a number |
Implemented in org.quiltmc.loader.impl.fabric.metadata.CustomValueImpl.
| CvObject net.fabricmc.loader.api.metadata.CustomValue.getAsObject | ( | ) |
Returns this value as an CvType#OBJECT.
| ClassCastException | if this value is not an object |
Implemented in org.quiltmc.loader.impl.fabric.metadata.CustomValueImpl.
| String net.fabricmc.loader.api.metadata.CustomValue.getAsString | ( | ) |
Returns this value as a CvType#STRING.
| ClassCastException | if this value is not a string |
Implemented in org.quiltmc.loader.impl.fabric.metadata.CustomValueImpl.