Package net.minecraft.src
Class ShapelessRecipes
java.lang.Object
net.minecraft.src.ShapelessRecipes
- All Implemented Interfaces:
IdentifiableRecipe<IRecipe>,IRecipe
-
Constructor Summary
ConstructorsConstructorDescriptionShapelessRecipes(ItemStack recipeOutput, List<TagOrStack> recipeItems) ShapelessRecipes(ItemStack recipeOutput, ItemStack[] recipeSecondaryOutputs, List<TagOrStack> recipeItems) -
Method Summary
Modifier and TypeMethodDescriptiongetCraftingResult(InventoryCrafting par1InventoryCrafting) Returns an Item that is the result of this recipeintReturns the size of the recipe areagetSecondaryOutput(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
-
Constructor Details
-
ShapelessRecipes
-
ShapelessRecipes
public ShapelessRecipes(ItemStack recipeOutput, ItemStack[] recipeSecondaryOutputs, List<TagOrStack> recipeItems)
-
-
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
-
matches
-
hasSecondaryOutput
public boolean hasSecondaryOutput()- Specified by:
hasSecondaryOutputin interfaceIRecipe
-
setSecondaryOutput
-
getSecondaryOutput
- Specified by:
getSecondaryOutputin interfaceIRecipe
-
getRecipeItems
-