public class InventoryPlanter extends InventoryAdapterRestricted implements IFarmInventoryInternal
| Modifier and Type | Field and Description |
|---|---|
static int |
SLOT_CAN |
static int |
SLOT_CAN_COUNT |
static int |
SLOT_COUNT |
static int |
SLOT_FERTILIZER |
static int |
SLOT_FERTILIZER_COUNT |
static int |
SLOT_GERMLINGS_1 |
static int |
SLOT_GERMLINGS_COUNT |
static int |
SLOT_PRODUCTION_1 |
static int |
SLOT_PRODUCTION_COUNT |
static int |
SLOT_RESOURCES_1 |
static int |
SLOT_RESOURCES_COUNT |
| Constructor and Description |
|---|
InventoryPlanter(TilePlanter housing) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsAsFertilizer(net.minecraft.item.ItemStack itemstack) |
boolean |
acceptsAsGermling(net.minecraft.item.ItemStack itemstack) |
boolean |
acceptsAsResource(net.minecraft.item.ItemStack itemstack) |
void |
addProduce(net.minecraft.item.ItemStack produce) |
boolean |
canExtractItem(int slotIndex,
net.minecraft.item.ItemStack stack,
net.minecraft.util.EnumFacing side) |
boolean |
canSlotAccept(int slotIndex,
net.minecraft.item.ItemStack itemStack)
Non-automation version of IInventory's isItemValidForSlot.
|
void |
drainCan(TankManager tankManager) |
net.minecraft.inventory.IInventory |
getFertilizerInventory() |
int |
getFertilizerValue() |
net.minecraft.inventory.IInventory |
getGermlingsInventory() |
net.minecraft.inventory.IInventory |
getProductInventory() |
net.minecraft.inventory.IInventory |
getResourcesInventory() |
boolean |
hasResources(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> resources) |
boolean |
plantGermling(IFarmable germling,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.math.BlockPos pos) |
boolean |
plantGermling(IFarmable germling,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.math.BlockPos pos,
FarmDirection direction) |
void |
removeResources(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> resources) |
void |
stowHarvest(java.lang.Iterable<net.minecraft.item.ItemStack> harvested,
java.util.Stack<net.minecraft.item.ItemStack> pendingProduce) |
boolean |
tryAddPendingProduce(java.util.Stack<net.minecraft.item.ItemStack> pendingProduce) |
boolean |
useFertilizer() |
canInsertItem, isItemValidForSlotclear, closeInventory, copy, decrStackSize, disableAutomation, getDisplayName, getField, getFieldCount, getInventoryStackLimit, getName, getSizeInventory, getSlotsForFace, getStackInSlot, hasCustomName, isEmpty, isLocked, isUsableByPlayer, markDirty, openInventory, readData, readFromNBT, removeStackFromSlot, setField, setInventorySlotContents, writeData, writeToNBTpublic static final int SLOT_RESOURCES_1
public static final int SLOT_RESOURCES_COUNT
public static final int SLOT_GERMLINGS_1
public static final int SLOT_GERMLINGS_COUNT
public static final int SLOT_PRODUCTION_1
public static final int SLOT_PRODUCTION_COUNT
public static final int SLOT_FERTILIZER
public static final int SLOT_FERTILIZER_COUNT
public static final int SLOT_CAN
public static final int SLOT_CAN_COUNT
public static final int SLOT_COUNT
public InventoryPlanter(TilePlanter housing)
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 stack,
net.minecraft.util.EnumFacing side)
canExtractItem in interface net.minecraft.inventory.ISidedInventorycanExtractItem in class InventoryAdapterRestrictedpublic boolean hasResources(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> resources)
hasResources in interface IFarmInventorypublic void removeResources(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> resources)
removeResources in interface IFarmInventorypublic boolean acceptsAsGermling(net.minecraft.item.ItemStack itemstack)
acceptsAsGermling in interface IFarmInventorypublic boolean acceptsAsResource(net.minecraft.item.ItemStack itemstack)
acceptsAsResource in interface IFarmInventorypublic boolean acceptsAsFertilizer(net.minecraft.item.ItemStack itemstack)
acceptsAsFertilizer in interface IFarmInventorypublic net.minecraft.inventory.IInventory getProductInventory()
getProductInventory in interface IFarmInventorypublic net.minecraft.inventory.IInventory getGermlingsInventory()
getGermlingsInventory in interface IFarmInventorypublic net.minecraft.inventory.IInventory getResourcesInventory()
getResourcesInventory in interface IFarmInventorypublic net.minecraft.inventory.IInventory getFertilizerInventory()
getFertilizerInventory in interface IFarmInventorypublic void drainCan(TankManager tankManager)
public boolean plantGermling(IFarmable germling, net.minecraft.entity.player.EntityPlayer player, net.minecraft.util.math.BlockPos pos)
public boolean plantGermling(IFarmable germling, net.minecraft.entity.player.EntityPlayer player, net.minecraft.util.math.BlockPos pos, FarmDirection direction)
public void addProduce(net.minecraft.item.ItemStack produce)
public void stowHarvest(java.lang.Iterable<net.minecraft.item.ItemStack> harvested,
java.util.Stack<net.minecraft.item.ItemStack> pendingProduce)
public boolean tryAddPendingProduce(java.util.Stack<net.minecraft.item.ItemStack> pendingProduce)
public int getFertilizerValue()
getFertilizerValue in interface IFarmInventoryInternalpublic boolean useFertilizer()
useFertilizer in interface IFarmInventoryInternal