Class ValueTypeListProxyPositionedInventory
java.lang.Object
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeListProxyBase<T,V>
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeListProxyPositioned<ValueObjectTypeItemStack,ValueObjectTypeItemStack.ValueItemStack>
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeListProxyPositionedInventory
- All Implemented Interfaces:
Iterable<ValueObjectTypeItemStack.ValueItemStack>,org.cyclops.cyclopscore.persist.nbt.INBTProvider,IValueTypeListProxy<ValueObjectTypeItemStack,ValueObjectTypeItemStack.ValueItemStack>
public class ValueTypeListProxyPositionedInventory
extends ValueTypeListProxyPositioned<ValueObjectTypeItemStack,ValueObjectTypeItemStack.ValueItemStack>
implements org.cyclops.cyclopscore.persist.nbt.INBTProvider
A list proxy for an inventory at a certain position.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionValueTypeListProxyPositionedInventory(org.cyclops.cyclopscore.datastructure.DimPos pos, net.minecraft.core.Direction side) -
Method Summary
Methods inherited from class org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeListProxyPositioned
getPos, getSide, readGeneratedFieldsFromNBT, setPos, setSide, writeGeneratedFieldsToNBTMethods inherited from class org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeListProxyBase
equals, getName, getValueType, hashCode, isInfinite, toCompactStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cyclops.cyclopscore.persist.nbt.INBTProvider
readGeneratedFieldsFromNBT, writeGeneratedFieldsToNBTMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ValueTypeListProxyPositionedInventory
public ValueTypeListProxyPositionedInventory(org.cyclops.cyclopscore.datastructure.DimPos pos, net.minecraft.core.Direction side) -
ValueTypeListProxyPositionedInventory
public ValueTypeListProxyPositionedInventory()
-
-
Method Details
-
getInventory
protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> getInventory() -
getLength
public int getLength()- Specified by:
getLengthin interfaceIValueTypeListProxy<ValueObjectTypeItemStack,ValueObjectTypeItemStack.ValueItemStack> - Returns:
- The list length
-
get
Description copied from interface:IValueTypeListProxyGet the element at the given index.- Specified by:
getin interfaceIValueTypeListProxy<ValueObjectTypeItemStack,ValueObjectTypeItemStack.ValueItemStack> - Parameters:
index- The index.- Returns:
- The element at the given index.
-
iterator
- Specified by:
iteratorin interfaceIterable<ValueObjectTypeItemStack.ValueItemStack>- Overrides:
iteratorin classValueTypeListProxyBase<ValueObjectTypeItemStack,ValueObjectTypeItemStack.ValueItemStack>
-