Package net.fabricmc.loader.api.metadata
Interface CustomValue.CvArray
- All Superinterfaces:
CustomValue,Iterable<CustomValue>
- Enclosing interface:
- CustomValue
Represents an
CustomValue.CvType.ARRAY value.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.fabricmc.loader.api.metadata.CustomValue
CustomValue.CvArray, CustomValue.CvObject, CustomValue.CvType -
Method Summary
Methods inherited from interface net.fabricmc.loader.api.metadata.CustomValue
getAsArray, getAsBoolean, getAsNumber, getAsObject, getAsString, getTypeMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
size
int size()Returns the number of values within this array value. -
get
Gets the value atindexwithin this array value.- Parameters:
index- the index of the value- Returns:
- the value associated
- Throws:
IndexOutOfBoundsException- if the index is not within {size()}
-