Package net.glowstone.inventory
Class InventoryIterator
java.lang.Object
net.glowstone.inventory.InventoryIterator
- All Implemented Interfaces:
Iterator<org.bukkit.inventory.ItemStack>,ListIterator<org.bukkit.inventory.ItemStack>
public final class InventoryIterator
extends Object
implements ListIterator<org.bukkit.inventory.ItemStack>
ListIterator for the contents of an inventory.
-
Constructor Summary
ConstructorsConstructorDescriptionInventoryIterator(org.bukkit.inventory.Inventory inventory) InventoryIterator(org.bukkit.inventory.Inventory inventory, int position) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
InventoryIterator
public InventoryIterator(org.bukkit.inventory.Inventory inventory) -
InventoryIterator
public InventoryIterator(org.bukkit.inventory.Inventory inventory, int position)
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<org.bukkit.inventory.ItemStack>- Specified by:
hasNextin interfaceListIterator<org.bukkit.inventory.ItemStack>
-
next
public org.bukkit.inventory.ItemStack next()- Specified by:
nextin interfaceIterator<org.bukkit.inventory.ItemStack>- Specified by:
nextin interfaceListIterator<org.bukkit.inventory.ItemStack>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<org.bukkit.inventory.ItemStack>
-
previous
public org.bukkit.inventory.ItemStack previous()- Specified by:
previousin interfaceListIterator<org.bukkit.inventory.ItemStack>
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<org.bukkit.inventory.ItemStack>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<org.bukkit.inventory.ItemStack>
-
set
public void set(org.bukkit.inventory.ItemStack itemStack) - Specified by:
setin interfaceListIterator<org.bukkit.inventory.ItemStack>
-
add
public void add(org.bukkit.inventory.ItemStack itemStack) - Specified by:
addin interfaceListIterator<org.bukkit.inventory.ItemStack>
-
remove
public void remove()- Specified by:
removein interfaceIterator<org.bukkit.inventory.ItemStack>- Specified by:
removein interfaceListIterator<org.bukkit.inventory.ItemStack>
-