Class RecipeRegistration.AddonRecipeBuilder
java.lang.Object
ke.ric.api.registration.RecipeRegistration.AddonRecipeBuilder
- Enclosing class:
RecipeRegistration
Builder for creating addon recipes.
-
Method Summary
Modifier and TypeMethodDescriptionAdd an action to the recipe.addAction(String type, RecipeItemRef itemRef, int amount) addByproduct(String itemId, int amount) Add a distinct quantified item output alongside the recipe result.addByproduct(RecipeItemRef itemRef, int amount) addConsumeReturn(RecipeItemRef itemRef, int amount) addIngredient(String itemId, boolean isCustomItem, int maxCount) Add a required ingredient.addIngredient(String customItemId, int maxCount) Add a required ingredient (custom item).addIngredientTag(String tag, int maxCount) Add a required ingredient that accepts any custom item with this tag.addIngredientWithOptions(boolean required, int minCount, int maxCount, IngredientOption... options) Add an ingredient slot with multiple options and explicit min/max counts.addIngredientWithOptions(boolean required, int maxCount, IngredientOption... options) Add an ingredient slot with multiple options.addOptionalIngredient(String itemId, boolean isCustomItem, int maxCount) Add an optional ingredient.addOptionalIngredientTag(String tag, int maxCount) Add an optional ingredient that accepts any custom item with this tag.addOptionalProviderIngredient(String providerItem, int maxCount) addProviderIngredient(String providerItem, int maxCount) addReturnItem(RecipeItemRef itemRef, int amount) addRule(String trigger, List<RuleMatcher> matchers, RecipeAction... ruleActions) Add a multi-matcher conditional rule.addRule(String trigger, RuleMatcher matcher, RecipeAction... ruleActions) Add a single-matcher conditional rule.addRule(RecipeRule rule) Add an already-constructed conditional rule.addWeightedOutput(String outputId, double weight) addWeightedOutput(RecipeItemRef outputRef, double weight) addWeightedOutput(RecipeItemRef outputRef, int amount, double weight) build()Build the recipe.description(String description) output(RecipeItemRef outputRef) output(RecipeItemRef outputRef, int amount) outputAmount(int amount) overrideStrength(int strength) pressAnimation(PressAnimationProfile profile) processingTime(int ticks) processingTimeSeconds(int seconds) stationName(String name) stationTexture(String textureUrl)
-
Method Details
-
id
-
addonId
-
stationName
-
stationTexture
-
output
-
output
-
output
-
outputAmount
-
description
-
processingTime
-
processingTimeSeconds
-
overrideStrength
-
pressAnimation
-
addIngredient
public RecipeRegistration.AddonRecipeBuilder addIngredient(String itemId, boolean isCustomItem, int maxCount) Add a required ingredient.- Parameters:
itemId- Item ID (custom or vanilla material)isCustomItem- true if this is a Heirloom custom itemmaxCount- Maximum count allowed
-
addIngredient
Add a required ingredient (custom item). -
addOptionalIngredient
public RecipeRegistration.AddonRecipeBuilder addOptionalIngredient(String itemId, boolean isCustomItem, int maxCount) Add an optional ingredient. -
addProviderIngredient
public RecipeRegistration.AddonRecipeBuilder addProviderIngredient(String providerItem, int maxCount) -
addOptionalProviderIngredient
public RecipeRegistration.AddonRecipeBuilder addOptionalProviderIngredient(String providerItem, int maxCount) -
addIngredientTag
Add a required ingredient that accepts any custom item with this tag. -
addOptionalIngredientTag
Add an optional ingredient that accepts any custom item with this tag. -
addByproduct
Add a distinct quantified item output alongside the recipe result. -
addByproduct
-
addWeightedOutput
-
addWeightedOutput
public RecipeRegistration.AddonRecipeBuilder addWeightedOutput(RecipeItemRef outputRef, double weight) -
addWeightedOutput
public RecipeRegistration.AddonRecipeBuilder addWeightedOutput(RecipeItemRef outputRef, int amount, double weight) -
addIngredientWithOptions
public RecipeRegistration.AddonRecipeBuilder addIngredientWithOptions(boolean required, int maxCount, IngredientOption... options) Add an ingredient slot with multiple options. -
addIngredientWithOptions
public RecipeRegistration.AddonRecipeBuilder addIngredientWithOptions(boolean required, int minCount, int maxCount, IngredientOption... options) Add an ingredient slot with multiple options and explicit min/max counts. -
addAction
Add an action to the recipe. -
addAction
public RecipeRegistration.AddonRecipeBuilder addAction(String type, RecipeItemRef itemRef, int amount) -
addReturnItem
-
addConsumeReturn
-
addRule
Add an already-constructed conditional rule. -
addRule
public RecipeRegistration.AddonRecipeBuilder addRule(String trigger, RuleMatcher matcher, RecipeAction... ruleActions) Add a single-matcher conditional rule. -
addRule
public RecipeRegistration.AddonRecipeBuilder addRule(String trigger, List<RuleMatcher> matchers, RecipeAction... ruleActions) Add a multi-matcher conditional rule. -
build
Build the recipe.
-