public interface ICraftingListener
Modifier and Type | Method and Description |
---|---|
net.minecraft.item.ItemStack |
onCrafted(net.minecraft.item.ItemStack[] craftingList,
net.minecraft.item.ItemStack craftingStack)
Called when this item is crafted, handle NBT moving or other stuff here
|
net.minecraft.item.ItemStack onCrafted(net.minecraft.item.ItemStack[] craftingList, net.minecraft.item.ItemStack craftingStack)
craftingList
- The list of items that were used, can have null at locations,
you should already know where important items are and read from this, be sure to check size
to find out if what kind of grid it is
Format Full Crafting:
0 1 2
3 4 5
6 7 8
Format Player Crafting:
0 1
2 3craftingStack
- The output stack, modify this to modify what the player gets on crafting