Quilt Loader 1
Loading...
Searching...
No Matches
org.quiltmc.loader.api.LoaderValue Interface Reference

Represents a value entry inside of mod metadata. More...

Inheritance diagram for org.quiltmc.loader.api.LoaderValue:
org.quiltmc.loader.api.LoaderValue.LArray org.quiltmc.loader.api.LoaderValue.LObject org.quiltmc.loader.impl.metadata.qmj.JsonLoaderValue org.quiltmc.loader.impl.metadata.qmj.JsonLoaderValue.ArrayImpl org.quiltmc.loader.impl.metadata.qmj.JsonLoaderValue.ObjectImpl org.quiltmc.loader.impl.metadata.qmj.JsonLoaderValue.ArrayImpl org.quiltmc.loader.impl.metadata.qmj.JsonLoaderValue.BooleanImpl org.quiltmc.loader.impl.metadata.qmj.JsonLoaderValue.NullImpl org.quiltmc.loader.impl.metadata.qmj.JsonLoaderValue.NumberImpl org.quiltmc.loader.impl.metadata.qmj.JsonLoaderValue.ObjectImpl org.quiltmc.loader.impl.metadata.qmj.JsonLoaderValue.StringImpl

Classes

interface  LArray
 Represents an LType#ARRAY value. More...
interface  LObject
 Represents an LType#OBJECT value. More...
enum  LType
 The possible types of a loader value. More...

Public Member Functions

LType type ()
String location ()
LObject asObject ()
 Coerces this custom value to an LType#OBJECT.
LArray asArray ()
 Coerces this custom value to an LType#ARRAY.
String asString ()
 Coerces this custom value to a LType#STRING.
Number asNumber ()
 Coerces this custom value to a LType#NUMBER.
boolean asBoolean ()
 Coerces this custom value to a LType#BOOLEAN.
boolean equals (Object obj)
int hashCode ()

Detailed Description

Represents a value entry inside of mod metadata.

Member Function Documentation

◆ asArray()

LArray org.quiltmc.loader.api.LoaderValue.asArray ( )

Coerces this custom value to an LType#ARRAY.

Returns
this value
Exceptions
ClassCastExceptionif this value is not an array

Implemented in org.quiltmc.loader.impl.metadata.qmj.JsonLoaderValue.

◆ asBoolean()

boolean org.quiltmc.loader.api.LoaderValue.asBoolean ( )

Coerces this custom value to a LType#BOOLEAN.

Returns
this value
Exceptions
ClassCastExceptionif this value is not a boolean

Implemented in org.quiltmc.loader.impl.metadata.qmj.JsonLoaderValue.

◆ asNumber()

Number org.quiltmc.loader.api.LoaderValue.asNumber ( )

Coerces this custom value to a LType#NUMBER.

Returns
this value
Exceptions
ClassCastExceptionif this value is not a number

Implemented in org.quiltmc.loader.impl.metadata.qmj.JsonLoaderValue.

◆ asObject()

LObject org.quiltmc.loader.api.LoaderValue.asObject ( )

Coerces this custom value to an LType#OBJECT.

Returns
this value
Exceptions
ClassCastExceptionif this value is not an object

Implemented in org.quiltmc.loader.impl.metadata.qmj.JsonLoaderValue.

◆ asString()

String org.quiltmc.loader.api.LoaderValue.asString ( )

Coerces this custom value to a LType#STRING.

Returns
this value
Exceptions
ClassCastExceptionif this value is not a string

Implemented in org.quiltmc.loader.impl.metadata.qmj.JsonLoaderValue.

◆ equals()

◆ hashCode()

◆ location()

◆ type()


The documentation for this interface was generated from the following file:
  • src/main/java/org/quiltmc/loader/api/LoaderValue.java