Package net.minecraft.src
Class ShapedRecipes
java.lang.Object
net.minecraft.src.ShapedRecipes
- All Implemented Interfaces:
IdentifiableRecipe<IRecipe>,IRecipe
- Direct Known Subclasses:
RecipesMapExtending,WoolArmorRecipe,WoolBlockRecipe
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intIs the itemID of the output item that you get when craft the recipe. -
Constructor Summary
ConstructorsConstructorDescriptionShapedRecipes(int par1, int par2, TagOrStack[] par3ArrayOfItemStack, ItemStack par4ItemStack) -
Method Summary
Modifier and TypeMethodDescriptiongetCraftingResult(InventoryCrafting par1InventoryCrafting) Returns an Item that is the result of this recipeintintReturns the size of the recipe areaintgetSecondaryOutput(IInventory inventory) booleanbooleanmatches(InventoryCrafting par1InventoryCrafting, World par2World) Used to check if a recipe matches current crafting inventorybooleanvoidsetSecondaryOutput(ItemStack[] secondaryOutput) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface api.crafting.IdentifiableRecipe
getId, setAsDefaultAfterAchievement, setAsDefaultUntilAchievement, setAsRecipeDefaultMethods inherited from interface net.minecraft.src.IRecipe
hideFromEMI
-
Field Details
-
recipeOutputItemID
public final int recipeOutputItemIDIs the itemID of the output item that you get when craft the recipe.
-
-
Constructor Details
-
ShapedRecipes
public ShapedRecipes(int par1, int par2, TagOrStack[] par3ArrayOfItemStack, ItemStack par4ItemStack)
-
-
Method Details
-
getRecipeOutput
- Specified by:
getRecipeOutputin interfaceIRecipe
-
matches
Used to check if a recipe matches current crafting inventory -
getCraftingResult
Returns an Item that is the result of this recipe- Specified by:
getCraftingResultin interfaceIRecipe
-
getRecipeSize
public int getRecipeSize()Returns the size of the recipe area- Specified by:
getRecipeSizein interfaceIRecipe
-
func_92100_c
-
matches
-
hasSecondaryOutput
public boolean hasSecondaryOutput()- Specified by:
hasSecondaryOutputin interfaceIRecipe
-
setSecondaryOutput
-
getSecondaryOutput
- Specified by:
getSecondaryOutputin interfaceIRecipe
-
getRecipeHeight
public int getRecipeHeight() -
getRecipeWidth
public int getRecipeWidth() -
getRecipeItems
-