public interface ICraftingPatternDetails
ICraftingPatternItem
caching this INSTANCE will increase performance of validation and checks.
Modifier and Type | Method and Description |
---|---|
boolean |
canSubstitute() |
IAEItemStack[] |
getCondensedInputs() |
IAEItemStack[] |
getCondensedOutputs() |
IAEItemStack[] |
getInputs() |
net.minecraft.item.ItemStack |
getOutput(net.minecraft.inventory.InventoryCrafting craftingInv,
net.minecraft.world.World world)
Allow using this INSTANCE of the pattern details to preform the crafting action with performance enhancements.
|
IAEItemStack[] |
getOutputs() |
net.minecraft.item.ItemStack |
getPattern() |
int |
getPriority()
Get the priority of this pattern
|
boolean |
isCraftable() |
boolean |
isValidItemForSlot(int slotIndex,
net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world) |
void |
setPriority(int priority)
Set the priority the of this pattern.
|
net.minecraft.item.ItemStack getPattern()
boolean isValidItemForSlot(int slotIndex, net.minecraft.item.ItemStack itemStack, net.minecraft.world.World world)
slotIndex
- specific slot indexitemStack
- item in slotworld
- crafting worldboolean isCraftable()
IAEItemStack[] getInputs()
IAEItemStack[] getCondensedInputs()
IAEItemStack[] getCondensedOutputs()
IAEItemStack[] getOutputs()
boolean canSubstitute()
net.minecraft.item.ItemStack getOutput(net.minecraft.inventory.InventoryCrafting craftingInv, net.minecraft.world.World world)
craftingInv
- inventoryworld
- crafting worldint getPriority()
void setPriority(int priority)
priority
- priority of pattern