Interface IValueTypeListProxy<T extends IValueType<V>,V extends IValue>
- Type Parameters:
T- The list element type value type.V- The list element type.
- All Superinterfaces:
Iterable<V>
- All Known Implementing Classes:
ValueTypeListProxyAppend,ValueTypeListProxyBase,ValueTypeListProxyConcat,ValueTypeListProxyEntityArmorInventory,ValueTypeListProxyEntityBase,ValueTypeListProxyEntityCapability,ValueTypeListProxyEntityFluids,ValueTypeListProxyEntityInventory,ValueTypeListProxyEntityItems,ValueTypeListProxyLazyBuilt,ValueTypeListProxyMaterialized,ValueTypeListProxyNbtAsListByte,ValueTypeListProxyNbtAsListGeneric,ValueTypeListProxyNbtAsListInt,ValueTypeListProxyNbtAsListLong,ValueTypeListProxyNbtAsListTag,ValueTypeListProxyNbtKeys,ValueTypeListProxyNbtValueListByte,ValueTypeListProxyNbtValueListGeneric,ValueTypeListProxyNbtValueListInt,ValueTypeListProxyNbtValueListLong,ValueTypeListProxyNbtValueListTag,ValueTypeListProxyOperatorMapped,ValueTypeListProxyPositioned,ValueTypeListProxyPositionedInventory,ValueTypeListProxyPositionedRecipes,ValueTypeListProxyPositionedTankCapacities,ValueTypeListProxyPositionedTankFluidStacks,ValueTypeListProxySlice,ValueTypeListProxyTail
Proxy for a list.
-
Method Details
-
getLength
- Returns:
- The list length
- Throws:
EvaluationException- If something went wrong wile getting an element.
-
get
Get the element at the given index.- Parameters:
index- The index.- Returns:
- The element at the given index.
- Throws:
EvaluationException- If something went wrong wile getting an element.
-
getValueType
T getValueType()- Returns:
- The list element value type.
-
getName
net.minecraft.resources.ResourceLocation getName()- Returns:
- The proxy type name that must exist in the
IValueTypeListProxyFactoryTypeRegistryso that this can be correctly (de)serialized.
-
toCompactString
net.minecraft.network.chat.MutableComponent toCompactString()- Returns:
- A short string representation used in guis to show the value.
-
isInfinite
boolean isInfinite()- Returns:
- If this is an infinite list.
-