Class ValueTypeListProxyEntityInventory
java.lang.Object
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeListProxyBase<T,V>
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeListProxyEntityBase<ValueObjectTypeItemStack,ValueObjectTypeItemStack.ValueItemStack>
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeListProxyEntityInventory
- All Implemented Interfaces:
Iterable<ValueObjectTypeItemStack.ValueItemStack>,org.cyclops.cyclopscore.persist.nbt.INBTProvider,IValueTypeListProxy<ValueObjectTypeItemStack,ValueObjectTypeItemStack.ValueItemStack>
public class ValueTypeListProxyEntityInventory
extends ValueTypeListProxyEntityBase<ValueObjectTypeItemStack,ValueObjectTypeItemStack.ValueItemStack>
implements org.cyclops.cyclopscore.persist.nbt.INBTProvider
A list proxy for the inventory of an entity.
-
Constructor Summary
ConstructorsConstructorDescriptionValueTypeListProxyEntityInventory(net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity) -
Method Summary
Modifier and TypeMethodDescriptionget(int index) Get the element at the given index.protected net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>intMethods inherited from class org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeListProxyEntityBase
getEntity, readGeneratedFieldsFromNBT, writeGeneratedFieldsToNBTMethods 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 org.cyclops.cyclopscore.persist.nbt.INBTProvider
readGeneratedFieldsFromNBT, writeGeneratedFieldsToNBTMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ValueTypeListProxyEntityInventory
public ValueTypeListProxyEntityInventory(net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity) -
ValueTypeListProxyEntityInventory
public ValueTypeListProxyEntityInventory()
-
-
Method Details
-
getInventory
protected net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> 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.
-