public interface ICellWorkbenchItem
Modifier and Type | Method and Description |
---|---|
net.minecraft.inventory.IInventory |
getConfigInventory(net.minecraft.item.ItemStack is)
Used to extract, or mirror the contents of the work bench onto the cell.
|
FuzzyMode |
getFuzzyMode(net.minecraft.item.ItemStack is) |
net.minecraft.inventory.IInventory |
getUpgradesInventory(net.minecraft.item.ItemStack is)
used to edit the upgrade slots on your cell, should have a capacity of 0-24, you are also responsible for
implementing the valid checks, and any storage/usage of them.
|
boolean |
isEditable(net.minecraft.item.ItemStack is)
if this return false, the item will not be treated as a cell, and cannot be inserted into the work bench.
|
void |
setFuzzyMode(net.minecraft.item.ItemStack is,
FuzzyMode fzMode)
sets the setting on the cell.
|
boolean isEditable(net.minecraft.item.ItemStack is)
is
- itemnet.minecraft.inventory.IInventory getUpgradesInventory(net.minecraft.item.ItemStack is)
onInventoryChange will be called when saving is needed.
net.minecraft.inventory.IInventory getConfigInventory(net.minecraft.item.ItemStack is)
- This should have exactly 63 slots, any more, or less might cause issues.
onInventoryChange will be called when saving is needed.
FuzzyMode getFuzzyMode(net.minecraft.item.ItemStack is)
void setFuzzyMode(net.minecraft.item.ItemStack is, FuzzyMode fzMode)