Interface IRecipeContainer
public interface IRecipeContainer
This interface is to be implemented on Container objects.
For GUIs with recipe books, this allows their containers to have
recipe completion and ghost recipes in their craft matrices.
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.inventory.CraftingContainer
The crafting matrix of your container, where ingredients go for crafting.net.minecraft.world.inventory.ResultContainer
The crafting result slot of your container, where you take out the crafted item.
-
Method Details
-
getCraftResult
net.minecraft.world.inventory.ResultContainer getCraftResult()The crafting result slot of your container, where you take out the crafted item. The equivalent forCraftingMenu
isCraftingMenu#resultSlots
. The equivalent forInventoryMenu
isInventoryMenu#resultSlots
. -
getCraftMatrix
net.minecraft.world.inventory.CraftingContainer getCraftMatrix()The crafting matrix of your container, where ingredients go for crafting. The equivalent forCraftingMenu
isCraftingMenu#craftSlots
. The equivalent forInventoryMenu
isInventoryMenu#craftSlots
.
-