public class InventoryBeeHousing extends InventoryAdapterRestricted implements IBeeHousingInventory
| Modifier and Type | Field and Description |
|---|---|
static int |
SLOT_DRONE |
static int |
SLOT_PRODUCT_1 |
static int |
SLOT_PRODUCT_COUNT |
static int |
SLOT_QUEEN |
| Constructor and Description |
|---|
InventoryBeeHousing(int size) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addProduct(net.minecraft.item.ItemStack product,
boolean all)
Adds products to the housing's inventory.
|
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.
|
net.minecraft.item.ItemStack |
getDrone() |
net.minecraft.item.ItemStack |
getQueen() |
void |
setDrone(net.minecraft.item.ItemStack itemstack) |
void |
setQueen(net.minecraft.item.ItemStack itemstack) |
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_QUEEN
public static final int SLOT_DRONE
public static final int SLOT_PRODUCT_1
public static final int SLOT_PRODUCT_COUNT
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 InventoryAdapterRestrictedpublic final net.minecraft.item.ItemStack getQueen()
getQueen in interface IBeeHousingInventorypublic final net.minecraft.item.ItemStack getDrone()
getDrone in interface IBeeHousingInventorypublic final void setQueen(net.minecraft.item.ItemStack itemstack)
setQueen in interface IBeeHousingInventorypublic final void setDrone(net.minecraft.item.ItemStack itemstack)
setDrone in interface IBeeHousingInventorypublic final boolean addProduct(net.minecraft.item.ItemStack product,
boolean all)
IBeeHousingInventoryaddProduct in interface IBeeHousingInventoryproduct - ItemStack with the product to add.all - if true, success requires that all products are added