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) Deprecated.Use the constructor with an ID passed instead.ShapelessRecipes(ItemStack recipeOutput, List<TagOrStack> recipeItems, ResourceLocation id) ShapelessRecipes(ItemStack recipeOutput, ItemStack[] recipeSecondaryOutputs, List<TagOrStack> recipeItems) Deprecated.Use the constructor with an ID passed instead.ShapelessRecipes(ItemStack recipeOutput, ItemStack[] recipeSecondaryOutputs, List<TagOrStack> recipeItems, ResourceLocation id) -
Method Summary
Modifier and TypeMethodDescriptiongetCraftingResult(InventoryCrafting par1InventoryCrafting) Returns an Item that is the result of this recipegetId()intReturns the size of the recipe areagetSecondaryOutput(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
-
Constructor Details
-
ShapelessRecipes
-
ShapelessRecipes
-
ShapelessRecipes
public ShapelessRecipes(ItemStack recipeOutput, ItemStack[] recipeSecondaryOutputs, List<TagOrStack> recipeItems, ResourceLocation id) -
ShapelessRecipes
Deprecated.Use the constructor with an ID passed instead. -
ShapelessRecipes
@Deprecated public ShapelessRecipes(ItemStack recipeOutput, ItemStack[] recipeSecondaryOutputs, List<TagOrStack> recipeItems) Deprecated.Use the constructor with an ID passed instead.
-
-
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
-
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
-
getRecipeItems
-