public class InventoryAlternateGui
extends java.lang.Object
implements net.minecraft.inventory.IInventory
| Modifier and Type | Field and Description |
|---|---|
protected int |
advFilterButtonStartPoint |
protected byte[] |
advFilterButtonStates |
protected net.minecraft.item.ItemStack[] |
advFilterStacks |
| Constructor and Description |
|---|
InventoryAlternateGui(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack itemStack,
BackpackTypes type) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
closeInventory(net.minecraft.entity.player.EntityPlayer player) |
net.minecraft.item.ItemStack |
decrStackSize(int slotIndex,
int amount) |
int |
getAdvFilterButtonStartPoint() |
byte[] |
getAdvFilterButtonStates() |
java.lang.String |
getCommandSenderName() |
net.minecraft.util.IChatComponent |
getDisplayName() |
int |
getField(int id) |
int |
getFieldCount() |
int |
getInventoryStackLimit() |
int |
getSizeInventory() |
net.minecraft.item.ItemStack |
getStackInSlot(int slotIndex) |
net.minecraft.item.ItemStack |
getStackInSlotOnClosing(int index) |
boolean |
hasCustomName() |
boolean |
isItemValidForSlot(int index,
net.minecraft.item.ItemStack itemStack) |
boolean |
isUseableByPlayer(net.minecraft.entity.player.EntityPlayer player) |
void |
markDirty() |
void |
onGuiSaved(net.minecraft.entity.player.EntityPlayer entityPlayer)
Called from the container to save the items.
|
void |
openInventory(net.minecraft.entity.player.EntityPlayer player) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbtTagCompound)
Loads in the items via the NBT data.
|
void |
save()
Updates the NBT data of the backpack to save it.
|
void |
setAdvFilterButtonType(int index,
int typeToSetTo)
Sets the advanced filter button specified to the type specified.
|
void |
setField(int id,
int value) |
void |
setInventorySlotContents(int slotIndex,
net.minecraft.item.ItemStack itemStack) |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbtTagCompound)
Writes the data of the backpack to NBT form.
|
protected net.minecraft.item.ItemStack[] advFilterStacks
protected byte[] advFilterButtonStates
protected int advFilterButtonStartPoint
public InventoryAlternateGui(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack itemStack,
BackpackTypes type)
public int getAdvFilterButtonStartPoint()
public byte[] getAdvFilterButtonStates()
public int getSizeInventory()
getSizeInventory in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlot(int slotIndex)
getStackInSlot in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack decrStackSize(int slotIndex,
int amount)
decrStackSize in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlotOnClosing(int index)
getStackInSlotOnClosing in interface net.minecraft.inventory.IInventorypublic void setInventorySlotContents(int slotIndex,
net.minecraft.item.ItemStack itemStack)
setInventorySlotContents in interface net.minecraft.inventory.IInventorypublic int getInventoryStackLimit()
getInventoryStackLimit in interface net.minecraft.inventory.IInventorypublic void markDirty()
markDirty in interface net.minecraft.inventory.IInventorypublic void clear()
clear in interface net.minecraft.inventory.IInventorypublic boolean isUseableByPlayer(net.minecraft.entity.player.EntityPlayer player)
isUseableByPlayer in interface net.minecraft.inventory.IInventorypublic void openInventory(net.minecraft.entity.player.EntityPlayer player)
openInventory in interface net.minecraft.inventory.IInventorypublic void closeInventory(net.minecraft.entity.player.EntityPlayer player)
closeInventory in interface net.minecraft.inventory.IInventorypublic boolean isItemValidForSlot(int index,
net.minecraft.item.ItemStack itemStack)
isItemValidForSlot in interface net.minecraft.inventory.IInventorypublic int getField(int id)
getField in interface net.minecraft.inventory.IInventorypublic void setField(int id,
int value)
setField in interface net.minecraft.inventory.IInventorypublic int getFieldCount()
getFieldCount in interface net.minecraft.inventory.IInventorypublic java.lang.String getCommandSenderName()
getCommandSenderName in interface net.minecraft.world.IWorldNameablepublic boolean hasCustomName()
hasCustomName in interface net.minecraft.world.IWorldNameablepublic net.minecraft.util.IChatComponent getDisplayName()
getDisplayName in interface net.minecraft.world.IWorldNameablepublic void setAdvFilterButtonType(int index,
int typeToSetTo)
index - - the button's indextypeToSetTo - - the button type to set it topublic void onGuiSaved(net.minecraft.entity.player.EntityPlayer entityPlayer)
entityPlayer - - the playerpublic void save()
public void writeToNBT(net.minecraft.nbt.NBTTagCompound nbtTagCompound)
nbtTagCompound - - the tag compoundpublic void readFromNBT(net.minecraft.nbt.NBTTagCompound nbtTagCompound)
nbtTagCompound - - the tag compound