public class PlayerExtendedInventoryIterator
extends java.lang.Object
implements java.util.Iterator<net.minecraft.item.ItemStack>
| Constructor and Description |
|---|
PlayerExtendedInventoryIterator(net.minecraft.entity.player.EntityPlayer player)
Create a new HotbarIterator.
|
| Modifier and Type | Method and Description |
|---|---|
protected net.minecraft.item.ItemStack |
getBaublesStack(int index) |
boolean |
hasNext() |
net.minecraft.item.ItemStack |
next() |
void |
remove() |
void |
replace(net.minecraft.item.ItemStack itemStack)
Replaces the itemstack on the position of the last returned itemstack.
|
protected void |
setBaublesData() |
protected void |
setBaublesStack(int index,
net.minecraft.item.ItemStack itemStack) |
public PlayerExtendedInventoryIterator(net.minecraft.entity.player.EntityPlayer player)
player - The player to iterate the hotbar from.public boolean hasNext()
hasNext in interface java.util.Iterator<net.minecraft.item.ItemStack>public net.minecraft.item.ItemStack next()
next in interface java.util.Iterator<net.minecraft.item.ItemStack>protected net.minecraft.item.ItemStack getBaublesStack(int index)
protected void setBaublesStack(int index,
net.minecraft.item.ItemStack itemStack)
protected void setBaublesData()
public void remove()
remove in interface java.util.Iterator<net.minecraft.item.ItemStack>public void replace(net.minecraft.item.ItemStack itemStack)
itemStack - The itemstack to place.