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) Deprecated.ShapedRecipes(int width, int height, TagOrStack[] inputs, ItemStack output, ResourceLocation id) -
Method Summary
Modifier and TypeMethodDescriptiongetCraftingResult(InventoryCrafting par1InventoryCrafting) Returns an Item that is the result of this recipegetId()intintReturns the size of the recipe areaintgetSecondaryOutput(IInventory inventory) booleanbooleanIf the recipe should be enabled based on the world context, usually in relation to the current difficulty.booleanmatches(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
hideFromEMI, setAsDefaultAfterAchievement, setAsDefaultUntilAchievement, setAsRecipeDefault
-
Field Details
-
recipeOutputItemID
public final int recipeOutputItemIDIs the itemID of the output item that you get when craft the recipe.
-
-
Constructor Details
-
ShapedRecipes
-
ShapedRecipes
public ShapedRecipes(int width, int height, TagOrStack[] inputs, ItemStack output, ResourceLocation id) -
ShapedRecipes
@Deprecated public ShapedRecipes(int par1, int par2, TagOrStack[] par3ArrayOfItemStack, ItemStack par4ItemStack) Deprecated.Use other constructors to allow setting the recipe ID.
-
-
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
-
getId
- Specified by:
getIdin interfaceIdentifiableRecipe<IRecipe>
-
isEnabled
Description copied from interface:IdentifiableRecipeIf the recipe should be enabled based on the world context, usually in relation to the current difficulty.- Specified by:
isEnabledin interfaceIdentifiableRecipe<IRecipe>
-
hasSecondaryOutput
public boolean hasSecondaryOutput()- Specified by:
hasSecondaryOutputin interfaceIRecipe
-
setSecondaryOutput
-
getSecondaryOutput
- Specified by:
getSecondaryOutputin interfaceIRecipe
-
getRecipeHeight
public int getRecipeHeight() -
getRecipeWidth
public int getRecipeWidth() -
getRecipeItems
-