Package api.crafting.providers
Class CraftingRecipeProvider.CraftingRecipeBuilder
java.lang.Object
api.crafting.providers.CraftingRecipeProvider.CraftingRecipeBuilder
- All Implemented Interfaces:
BaseSteps.FinalStep<IRecipe>,BaseSteps.IdentifierStep<BaseSteps.OutputStep<CraftingRecipeProvider.TypeStep>>,BaseSteps.OutputStep<CraftingRecipeProvider.TypeStep>,CraftingRecipeProvider.CharacterStep,CraftingRecipeProvider.FinalStep,CraftingRecipeProvider.LogChoppingStep,CraftingRecipeProvider.LowQualityOutputStep,CraftingRecipeProvider.LowQualitySecondaryOutputStep,CraftingRecipeProvider.MappingStep,CraftingRecipeProvider.PatternStep,CraftingRecipeProvider.SecondaryOutputStep,CraftingRecipeProvider.ShapelessStep,CraftingRecipeProvider.TypeStep
- Enclosing class:
- CraftingRecipeProvider
public static class CraftingRecipeProvider.CraftingRecipeBuilder
extends Object
implements BaseSteps.IdentifierStep<BaseSteps.OutputStep<CraftingRecipeProvider.TypeStep>>, BaseSteps.OutputStep<CraftingRecipeProvider.TypeStep>, CraftingRecipeProvider.TypeStep, CraftingRecipeProvider.LogChoppingStep, CraftingRecipeProvider.SecondaryOutputStep, CraftingRecipeProvider.LowQualityOutputStep, CraftingRecipeProvider.LowQualitySecondaryOutputStep, CraftingRecipeProvider.PatternStep, CraftingRecipeProvider.CharacterStep, CraftingRecipeProvider.MappingStep, CraftingRecipeProvider.ShapelessStep, CraftingRecipeProvider.FinalStep
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<Character,TagOrStack> protected intprotected ResourceLocationprotected TagOrStack[]protected booleanprotected booleanprotected final intprotected final intprotected ItemStackprotected String[]protected ItemStack[]protected booleanprotected booleanprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbeginMap(char pattern, TagOrStack tagOrStack) build()Probably what you want to use.conditionally(Predicate<World> condition) A condition in where the recipe will be enabled.intgetId()intgetWidth()Whether this recipe is hidden from EMI.booleanbooleanisShaped()booleanitems(TagOrStack... inputItems) map(char symbol, TagOrStack tagOrStack) outputLowQuality(ItemStack outputLowQuality) Low quality output used for stone axes.secondaryLowQuality(ItemStack... secondaryOutputsLowQuality) shaped()withCustomClass(Class<? extends IRecipe> customRecipe) withInput(TagOrStack input) withSecondaryOutput(ItemStack... secondaryItems) withSecondaryOutputs(ItemStack... secondaryOutputs)
-
Field Details
-
maxWidth
protected final int maxWidth -
maxHeight
protected final int maxHeight -
id
-
output
-
shaped
protected boolean shaped -
logChopping
protected boolean logChopping -
inputs
-
charToItem
-
pattern
-
width
protected int width -
height
protected int height -
isSoulforgeOnly
protected boolean isSoulforgeOnly -
secondaryOutputs
-
condition
-
transferInputNBTToOutput
protected boolean transferInputNBTToOutput -
customRecipeClass
-
-
Constructor Details
-
CraftingRecipeBuilder
protected CraftingRecipeBuilder(int maxWidth, int maxHeight)
-
-
Method Details
-
setId
- Specified by:
setIdin interfaceBaseSteps.IdentifierStep<BaseSteps.OutputStep<CraftingRecipeProvider.TypeStep>>
-
output
- Specified by:
outputin interfaceBaseSteps.OutputStep<CraftingRecipeProvider.TypeStep>
-
hideFromEMI
Description copied from interface:BaseSteps.FinalStepWhether this recipe is hidden from EMI. The recipe will still be usable.- Specified by:
hideFromEMIin interfaceBaseSteps.FinalStep<IRecipe>
-
conditionally
Description copied from interface:BaseSteps.FinalStepA condition in where the recipe will be enabled. Usually based on currentDifficulty.- Specified by:
conditionallyin interfaceBaseSteps.FinalStep<IRecipe>
-
withCustomClass
- Specified by:
withCustomClassin interfaceCraftingRecipeProvider.TypeStep
-
withSecondaryOutput
- Specified by:
withSecondaryOutputin interfaceCraftingRecipeProvider.FinalStep
-
transferInputNBTToOutput
- Specified by:
transferInputNBTToOutputin interfaceCraftingRecipeProvider.FinalStep
-
logChopping
- Specified by:
logChoppingin interfaceCraftingRecipeProvider.TypeStep
-
withInput
- Specified by:
withInputin interfaceCraftingRecipeProvider.LogChoppingStep
-
withInput
- Specified by:
withInputin interfaceCraftingRecipeProvider.LogChoppingStep
-
withInput
- Specified by:
withInputin interfaceCraftingRecipeProvider.LogChoppingStep
-
noLowQuality
- Specified by:
noLowQualityin interfaceCraftingRecipeProvider.LowQualityOutputStep
-
withSecondaryOutputs
public CraftingRecipeProvider.LowQualityOutputStep withSecondaryOutputs(ItemStack... secondaryOutputs) - Specified by:
withSecondaryOutputsin interfaceCraftingRecipeProvider.SecondaryOutputStep
-
outputLowQuality
public CraftingRecipeProvider.LowQualitySecondaryOutputStep outputLowQuality(ItemStack outputLowQuality) Description copied from interface:CraftingRecipeProvider.LowQualityOutputStepLow quality output used for stone axes.- Specified by:
outputLowQualityin interfaceCraftingRecipeProvider.LowQualityOutputStep
-
secondaryLowQuality
- Specified by:
secondaryLowQualityin interfaceCraftingRecipeProvider.LowQualitySecondaryOutputStep
-
shaped
- Specified by:
shapedin interfaceCraftingRecipeProvider.TypeStep
-
beginMap
- Specified by:
beginMapin interfaceCraftingRecipeProvider.CharacterStep
-
beginMap
- Specified by:
beginMapin interfaceCraftingRecipeProvider.CharacterStep
-
beginMap
- Specified by:
beginMapin interfaceCraftingRecipeProvider.CharacterStep
-
beginMap
- Specified by:
beginMapin interfaceCraftingRecipeProvider.CharacterStep
-
map
- Specified by:
mapin interfaceCraftingRecipeProvider.MappingStep
-
map
- Specified by:
mapin interfaceCraftingRecipeProvider.MappingStep
-
map
- Specified by:
mapin interfaceCraftingRecipeProvider.MappingStep
-
finishMap
- Specified by:
finishMapin interfaceCraftingRecipeProvider.MappingStep
-
pattern
- Specified by:
patternin interfaceCraftingRecipeProvider.PatternStep
-
shapeless
- Specified by:
shapelessin interfaceCraftingRecipeProvider.TypeStep
-
items
- Specified by:
itemsin interfaceCraftingRecipeProvider.ShapelessStep
-
build
- Specified by:
buildin interfaceBaseSteps.FinalStep<IRecipe>
-
buildAndRegister
Description copied from interface:BaseSteps.FinalStepProbably what you want to use.- Specified by:
buildAndRegisterin interfaceBaseSteps.FinalStep<IRecipe>
-
getId
-
getOutput
-
isShaped
public boolean isShaped() -
isHasLowQuality
public boolean isHasLowQuality() -
getOutputLowQuality
-
getSecondaryOutputsLowQuality
-
getInputs
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getSecondaryOutputs
-
getCondition
-
isTransferInputNBTToOutput
public boolean isTransferInputNBTToOutput()
-