Class ValueTypeListProxyNbtAsListGeneric<N extends net.minecraft.nbt.Tag,T extends IValueType<V>,V extends IValue>
java.lang.Object
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeListProxyBase<T,V>
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeListProxyNbtAsListGeneric<N,T,V>
- All Implemented Interfaces:
Iterable<V>,IValueTypeListProxy<T,V>
- Direct Known Subclasses:
ValueTypeListProxyNbtAsListByte,ValueTypeListProxyNbtAsListInt,ValueTypeListProxyNbtAsListLong,ValueTypeListProxyNbtAsListTag
public abstract class ValueTypeListProxyNbtAsListGeneric<N extends net.minecraft.nbt.Tag,T extends IValueType<V>,V extends IValue>
extends ValueTypeListProxyBase<T,V>
An abstraction casting an NBT value to a list of a certain type.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classValueTypeListProxyNbtAsListGeneric.Factory<L extends ValueTypeListProxyNbtAsListGeneric<N,T, V>, N extends net.minecraft.nbt.Tag, T extends IValueType<V>, V extends IValue> -
Constructor Summary
ConstructorsConstructorDescriptionValueTypeListProxyNbtAsListGeneric(net.minecraft.resources.ResourceLocation name, T valueType, Optional<net.minecraft.nbt.Tag> tag) -
Method Summary
Methods inherited from class org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeListProxyBase
equals, getName, getValueType, hashCode, isInfinite, iterator, toCompactStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ValueTypeListProxyNbtAsListGeneric
-
-
Method Details
-
getTag
-
getLength
- Returns:
- The list length
- Throws:
EvaluationException- If something went wrong wile getting an element.
-
get
Description copied from interface:IValueTypeListProxyGet 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.
-
getLength
-
get
-