Class ValueTypeListProxyNbtValueListGeneric<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.ValueTypeListProxyNbtValueListGeneric<N,T,V>
- All Implemented Interfaces:
Iterable<V>,IValueTypeListProxy<T,V>
- Direct Known Subclasses:
ValueTypeListProxyNbtValueListByte,ValueTypeListProxyNbtValueListInt,ValueTypeListProxyNbtValueListLong,ValueTypeListProxyNbtValueListTag
public abstract class ValueTypeListProxyNbtValueListGeneric<N extends net.minecraft.nbt.Tag,T extends IValueType<V>,V extends IValue>
extends ValueTypeListProxyBase<T,V>
An abstraction for a list of NBT values of a certain type.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classValueTypeListProxyNbtValueListGeneric.Factory<L extends ValueTypeListProxyNbtValueListGeneric<N,T, V>, N extends net.minecraft.nbt.Tag, T extends IValueType<V>, V extends IValue> -
Constructor Summary
ConstructorsConstructorDescriptionValueTypeListProxyNbtValueListGeneric(net.minecraft.resources.ResourceLocation name, T valueType, String key, 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
-
ValueTypeListProxyNbtValueListGeneric
-
-
Method Details
-
getKey
-
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
-