Class PlayerExtendedInventoryIterator
java.lang.Object
org.cyclops.cyclopscore.inventory.PlayerExtendedInventoryIterator
- All Implemented Interfaces:
Iterator<net.minecraft.world.item.ItemStack>
public class PlayerExtendedInventoryIterator
extends Object
implements Iterator<net.minecraft.world.item.ItemStack>
Iterate over a player's inventory and any other attached inventory like baubles.
-
Constructor Summary
ConstructorDescriptionPlayerExtendedInventoryIterator
(net.minecraft.world.entity.player.Player player) Create a new HotbarIterator. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
PlayerExtendedInventoryIterator
public PlayerExtendedInventoryIterator(net.minecraft.world.entity.player.Player player) Create a new HotbarIterator.- Parameters:
player
- The player to iterate the hotbar from.
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
public net.minecraft.world.item.ItemStack next() -
nextIndexed
-
remove
public void remove() -
replace
public void replace(net.minecraft.world.item.ItemStack itemStack) Replaces the itemstack on the position of the last returned itemstack.- Parameters:
itemStack
- The itemstack to place.
-