Class LogChoppingRecipe
java.lang.Object
btw.crafting.recipe.types.customcrafting.LogChoppingRecipe
- All Implemented Interfaces:
IdentifiableRecipe<IRecipe>,IRecipe
-
Constructor Summary
ConstructorsConstructorDescriptionLogChoppingRecipe(ItemStack output, ItemStack[] secondaryOutputs, TagOrStack input, Predicate<World> condition) LogChoppingRecipe(ItemStack output, ItemStack[] secondaryOutputs, ItemStack outputLowQuality, ItemStack[] secondaryOutputsLowQuality, TagOrStack input, Predicate<World> condition) LogChoppingRecipe(ResourceLocation id, ItemStack output, ItemStack[] secondaryOutputs, TagOrStack input, Predicate<World> condition) LogChoppingRecipe(ResourceLocation id, ItemStack output, ItemStack[] secondaryOutputs, ItemStack outputLowQuality, ItemStack[] secondaryOutputsLowQuality, TagOrStack input, Predicate<World> condition) Low quality output used for stone axes -
Method Summary
Modifier and TypeMethodDescriptiongetCraftingResult(InventoryCrafting inventory) Returns an Item that is the result of this recipebooleangetId()getInput()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 inventory, World world) Used to check if a recipe matches current crafting inventorybooleanMethods 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
-
LogChoppingRecipe
public LogChoppingRecipe(ItemStack output, ItemStack[] secondaryOutputs, TagOrStack input, Predicate<World> condition) -
LogChoppingRecipe
public LogChoppingRecipe(ResourceLocation id, ItemStack output, ItemStack[] secondaryOutputs, TagOrStack input, Predicate<World> condition) -
LogChoppingRecipe
public LogChoppingRecipe(ResourceLocation id, ItemStack output, ItemStack[] secondaryOutputs, ItemStack outputLowQuality, ItemStack[] secondaryOutputsLowQuality, TagOrStack input, Predicate<World> condition) Low quality output used for stone axes -
LogChoppingRecipe
-
-
Method Details
-
matches
Description copied from interface:IRecipeUsed to check if a recipe matches current crafting inventory -
getCraftingResult
Description copied from interface:IRecipeReturns an Item that is the result of this recipe- Specified by:
getCraftingResultin interfaceIRecipe
-
matches
-
hasSecondaryOutput
public boolean hasSecondaryOutput()- Specified by:
hasSecondaryOutputin interfaceIRecipe
-
getSecondaryOutput
- Specified by:
getSecondaryOutputin interfaceIRecipe
-
getRecipeSize
public int getRecipeSize()Description copied from interface:IRecipeReturns the size of the recipe area- Specified by:
getRecipeSizein interfaceIRecipe
-
getRecipeOutput
- Specified by:
getRecipeOutputin interfaceIRecipe
-
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>
-
getSecondaryOutput
-
getRecipeOutputLowQuality
-
getSecondaryOutputLowQuality
-
getHasLowQualityOutputs
public boolean getHasLowQualityOutputs() -
getInput
-