Package net.fabricmc.loader.api.metadata
Interface CustomValue.CvObject
- All Superinterfaces:
CustomValue
,Iterable<Map.Entry<String,
CustomValue>>
- Enclosing interface:
- CustomValue
public static interface CustomValue.CvObject
extends CustomValue, Iterable<Map.Entry<String,CustomValue>>
Represents an
CustomValue.CvType.OBJECT
value.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.fabricmc.loader.api.metadata.CustomValue
CustomValue.CvArray, CustomValue.CvObject, CustomValue.CvType
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String key) Returns whether akey
is present within this object value.Gets the value associated with akey
within this object value.int
size()
Returns the number of key-value pairs within this object value.Methods inherited from interface net.fabricmc.loader.api.metadata.CustomValue
getAsArray, getAsBoolean, getAsNumber, getAsObject, getAsString, getType
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
size
int size()Returns the number of key-value pairs within this object value. -
containsKey
Returns whether akey
is present within this object value.- Parameters:
key
- the key to check- Returns:
- whether the key is present
-
get
Gets the value associated with akey
within this object value.- Parameters:
key
- the key to check- Returns:
- the value associated, or
null
if no such value is present
-