public class InventorySqueezer extends InventoryAdapterTile<TileSqueezer>
| Modifier and Type | Field and Description |
|---|---|
static short |
SLOT_CAN_INPUT |
static short |
SLOT_CAN_OUTPUT |
static short |
SLOT_REMNANT |
static short |
SLOT_REMNANT_COUNT |
static short |
SLOT_RESOURCE_1 |
static short |
SLOTS_RESOURCE_COUNT |
tile| Constructor and Description |
|---|
InventorySqueezer(TileSqueezer squeezer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRemnant(net.minecraft.item.ItemStack remnant,
boolean doAdd) |
boolean |
canExtractItem(int slotIndex,
net.minecraft.item.ItemStack itemstack,
net.minecraft.util.EnumFacing side) |
boolean |
canSlotAccept(int slotIndex,
net.minecraft.item.ItemStack itemStack)
Non-automation version of IInventory's isItemValidForSlot.
|
void |
fillContainers(net.minecraftforge.fluids.FluidStack fluidStack,
TankManager tankManager) |
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
getResources() |
boolean |
hasResources() |
boolean |
removeResources(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> stacks) |
markDirtycanInsertItem, isItemValidForSlotclear, closeInventory, copy, decrStackSize, disableAutomation, getDisplayName, getField, getFieldCount, getInventoryStackLimit, getName, getSizeInventory, getSlotsForFace, getStackInSlot, hasCustomName, isEmpty, isLocked, isUsableByPlayer, openInventory, readData, readFromNBT, removeStackFromSlot, setField, setInventorySlotContents, writeData, writeToNBTpublic static final short SLOT_RESOURCE_1
public static final short SLOTS_RESOURCE_COUNT
public static final short SLOT_REMNANT
public static final short SLOT_REMNANT_COUNT
public static final short SLOT_CAN_INPUT
public static final short SLOT_CAN_OUTPUT
public InventorySqueezer(TileSqueezer squeezer)
public boolean canSlotAccept(int slotIndex,
net.minecraft.item.ItemStack itemStack)
IFilterSlotDelegateCombine this with Forestry's access permissions to implement isItemValidForSlot.
canSlotAccept in interface IFilterSlotDelegatecanSlotAccept in class InventoryAdapterpublic boolean canExtractItem(int slotIndex,
net.minecraft.item.ItemStack itemstack,
net.minecraft.util.EnumFacing side)
canExtractItem in interface net.minecraft.inventory.ISidedInventorycanExtractItem in class InventoryAdapterTile<TileSqueezer>public boolean hasResources()
public net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getResources()
public boolean removeResources(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> stacks)
public boolean addRemnant(net.minecraft.item.ItemStack remnant,
boolean doAdd)
public void fillContainers(net.minecraftforge.fluids.FluidStack fluidStack,
TankManager tankManager)