Package net.fabricmc.loader.api.metadata
Interface CustomValue.CvArray
- All Superinterfaces:
CustomValue,Iterable<CustomValue>
- Enclosing interface:
- CustomValue
public static interface CustomValue.CvArray extends CustomValue, Iterable<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
Modifier and Type Method Description CustomValueget(int index)Gets the value atindexwithin this array value.intsize()Returns the number of values within this array value.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()}
-