public class BagStorage extends java.lang.Object implements IBitBag
| Modifier and Type | Field and Description |
|---|---|
static int |
BAG_STORAGE_SLOTS |
protected int[] |
contents |
protected net.minecraft.item.ItemStack |
stack |
| Constructor and Description |
|---|
BagStorage() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
net.minecraft.item.ItemStack |
extractItem(int slot,
int amount,
boolean simulate) |
int |
getBitbagStackSize() |
int |
getSlotLimit(int slot) |
int |
getSlots() |
int |
getSlotsUsed() |
net.minecraft.item.ItemStack |
getStackInSlot(int slot) |
int |
hashCode() |
net.minecraft.item.ItemStack |
insertItem(int slot,
net.minecraft.item.ItemStack stack,
boolean simulate) |
void |
onChange() |
protected void |
setStorage(int[] source) |
public static final int BAG_STORAGE_SLOTS
protected net.minecraft.item.ItemStack stack
protected int[] contents
protected void setStorage(int[] source)
public void onChange()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int getSlots()
getSlots in interface net.minecraftforge.items.IItemHandlerpublic net.minecraft.item.ItemStack getStackInSlot(int slot)
getStackInSlot in interface net.minecraftforge.items.IItemHandlerpublic net.minecraft.item.ItemStack insertItem(int slot,
net.minecraft.item.ItemStack stack,
boolean simulate)
insertItem in interface net.minecraftforge.items.IItemHandlerpublic int getBitbagStackSize()
getBitbagStackSize in interface IBitBagpublic net.minecraft.item.ItemStack extractItem(int slot,
int amount,
boolean simulate)
extractItem in interface net.minecraftforge.items.IItemHandlerpublic int getSlotsUsed()
getSlotsUsed in interface IBitBagpublic int getSlotLimit(int slot)
getSlotLimit in interface net.minecraftforge.items.IItemHandler