public abstract static class TileWorking.Metadata
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
Metadata(int basicInventorySize) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
areUpgradeSlotsValidForTier(net.minecraft.inventory.IInventory inventory,
int tier) |
abstract boolean |
canConsume(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world)
Check if the given item can be infused.
|
boolean |
canExtractItem(net.minecraft.inventory.IInventory inventory,
int slot,
net.minecraft.item.ItemStack itemStack,
net.minecraft.item.ItemStack replaceItem)
If the given item can be extracted.
|
boolean |
canInsertItem(net.minecraft.inventory.IInventory inventory,
int slot,
net.minecraft.item.ItemStack itemStack)
Check if the given item can be inserted.
|
int |
getBasicInventorySize() |
protected abstract net.minecraft.block.Block |
getBlock() |
protected int |
getRequiredTierForSlot(int slotId) |
int |
getTier(net.minecraft.inventory.IInventory inventory) |
java.util.Set<Upgrades.Upgrade> |
getUpgrades() |
protected boolean |
isTierUpgrade(net.minecraft.item.ItemStack itemStack) |
protected boolean |
isUpgradeSlot(int slotId) |
boolean |
isUpgradeSlotEnabled(net.minecraft.inventory.IInventory inventory,
int slotId) |
public int getBasicInventorySize()
public abstract boolean canConsume(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world)
itemStack - The item to check.world - The world.public boolean canInsertItem(net.minecraft.inventory.IInventory inventory,
int slot,
net.minecraft.item.ItemStack itemStack)
inventory - The tile inventory.slot - The slot id.itemStack - The item that is being inserted.public boolean canExtractItem(net.minecraft.inventory.IInventory inventory,
int slot,
net.minecraft.item.ItemStack itemStack,
net.minecraft.item.ItemStack replaceItem)
inventory - The tile inventory.slot - The slot id.itemStack - The item that is being extracted, the current slot contents.replaceItem - The current item in that slot.protected boolean isUpgradeSlot(int slotId)
protected boolean isTierUpgrade(net.minecraft.item.ItemStack itemStack)
protected boolean areUpgradeSlotsValidForTier(net.minecraft.inventory.IInventory inventory,
int tier)
public boolean isUpgradeSlotEnabled(net.minecraft.inventory.IInventory inventory,
int slotId)
protected int getRequiredTierForSlot(int slotId)
public int getTier(net.minecraft.inventory.IInventory inventory)
inventory - The tile inventory.public java.util.Set<Upgrades.Upgrade> getUpgrades()
protected abstract net.minecraft.block.Block getBlock()