public class FakeInventoryAdapter extends java.lang.Object implements IInventoryAdapter
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExtractItem(int index,
net.minecraft.item.ItemStack stack,
net.minecraft.util.EnumFacing direction) |
boolean |
canInsertItem(int index,
net.minecraft.item.ItemStack itemStackIn,
net.minecraft.util.EnumFacing direction) |
boolean |
canSlotAccept(int slotIndex,
net.minecraft.item.ItemStack itemStack)
Non-automation version of IInventory's isItemValidForSlot.
|
void |
clear() |
void |
closeInventory(net.minecraft.entity.player.EntityPlayer player) |
net.minecraft.item.ItemStack |
decrStackSize(int p_70298_1_,
int p_70298_2_) |
net.minecraft.util.text.ITextComponent |
getDisplayName() |
int |
getField(int id) |
int |
getFieldCount() |
int |
getInventoryStackLimit() |
java.lang.String |
getName() |
int |
getSizeInventory() |
int[] |
getSlotsForFace(net.minecraft.util.EnumFacing side) |
net.minecraft.item.ItemStack |
getStackInSlot(int p_70301_1_) |
boolean |
hasCustomName() |
static FakeInventoryAdapter |
instance() |
boolean |
isEmpty() |
boolean |
isItemValidForSlot(int p_94041_1_,
net.minecraft.item.ItemStack p_94041_2_) |
boolean |
isLocked(int slotIndex)
Used to lock slots under special conditions.
|
boolean |
isUsableByPlayer(net.minecraft.entity.player.EntityPlayer player) |
void |
markDirty() |
void |
openInventory(net.minecraft.entity.player.EntityPlayer player) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
net.minecraft.item.ItemStack |
removeStackFromSlot(int index) |
void |
setField(int id,
int value) |
void |
setInventorySlotContents(int p_70299_1_,
net.minecraft.item.ItemStack p_70299_2_) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
public static FakeInventoryAdapter instance()
public boolean isEmpty()
isEmpty in interface net.minecraft.inventory.IInventorypublic boolean canSlotAccept(int slotIndex,
net.minecraft.item.ItemStack itemStack)
IFilterSlotDelegateCombine this with Forestry's access permissions to implement isItemValidForSlot.
canSlotAccept in interface IFilterSlotDelegatepublic boolean isLocked(int slotIndex)
IFilterSlotDelegateisLocked in interface IFilterSlotDelegatepublic int[] getSlotsForFace(net.minecraft.util.EnumFacing side)
getSlotsForFace in interface net.minecraft.inventory.ISidedInventorypublic boolean canExtractItem(int index,
net.minecraft.item.ItemStack stack,
net.minecraft.util.EnumFacing direction)
canExtractItem in interface net.minecraft.inventory.ISidedInventorypublic boolean canInsertItem(int index,
net.minecraft.item.ItemStack itemStackIn,
net.minecraft.util.EnumFacing direction)
canInsertItem in interface net.minecraft.inventory.ISidedInventorypublic int getSizeInventory()
getSizeInventory in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlot(int p_70301_1_)
getStackInSlot in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack decrStackSize(int p_70298_1_,
int p_70298_2_)
decrStackSize in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack removeStackFromSlot(int index)
removeStackFromSlot in interface net.minecraft.inventory.IInventorypublic void setInventorySlotContents(int p_70299_1_,
net.minecraft.item.ItemStack p_70299_2_)
setInventorySlotContents in interface net.minecraft.inventory.IInventorypublic net.minecraft.util.text.ITextComponent getDisplayName()
getDisplayName in interface net.minecraft.world.IWorldNameablepublic java.lang.String getName()
getName in interface net.minecraft.world.IWorldNameablepublic boolean hasCustomName()
hasCustomName in interface net.minecraft.world.IWorldNameablepublic int getInventoryStackLimit()
getInventoryStackLimit in interface net.minecraft.inventory.IInventorypublic void markDirty()
markDirty in interface net.minecraft.inventory.IInventorypublic boolean isUsableByPlayer(net.minecraft.entity.player.EntityPlayer player)
isUsableByPlayer 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 p_94041_1_,
net.minecraft.item.ItemStack p_94041_2_)
isItemValidForSlot in interface net.minecraft.inventory.IInventorypublic void readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
readFromNBT in interface INbtReadablepublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
writeToNBT in interface INbtWritablepublic 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 void clear()
clear in interface net.minecraft.inventory.IInventory