Class RecipeRegistration.AddonRecipe
java.lang.Object
ke.ric.cooking.data.Recipe
ke.ric.api.registration.RecipeRegistration.AddonRecipe
- Enclosing class:
RecipeRegistration
An addon recipe with custom station information.
-
Nested Class Summary
Nested classes/interfaces inherited from class Recipe
Recipe.OutputVariant -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAddonId(String addonId) voidsetDescription(String description) voidsetStationName(String stationName) voidsetStationTexture(String stationTexture) Methods inherited from class Recipe
canMatch, getActions, getAvailabilityDescription, getAvailableFrom, getAvailableUntil, getByproducts, getId, getIngredients, getOptionalSlotCount, getOutput, getOutputAmount, getOutputRef, getOutputVariants, getOverrideStrength, getPackMetadata, getPressAnimation, getProcessingTime, getRequiredSlotCount, getRules, getSourceId, getStation, getWeightedOutputs, hasWeightedOutputs, isAvailable, isSeasonal, setActions, setAvailableFrom, setAvailableFrom, setAvailableUntil, setAvailableUntil, setByproducts, setId, setIngredients, setOutput, setOutputAmount, setOutputRef, setOutputVariants, setOverrideStrength, setPackMetadata, setPressAnimation, setProcessingTime, setRules, setSourceId, setStation, setStation, setWeightedOutputs, toStringModifier and TypeMethodDescriptionbooleancanMatch(List<CraftingInput> inputs) Check if a list of inputs can potentially match this recipe.Get a human-readable description of the availability period.Get immutable quantified byproducts.getId()intGet the number of optional ingredient slots.intintintintGet the number of required ingredient slots.getRules()booleanbooleanCheck if this recipe is currently available based on the real-world date.booleanCheck if this recipe has seasonal availability restrictions.voidsetActions(List<RecipeAction> actions) voidsetAvailableFrom(String dateStr) Set availability start date from string format "MM-DD".voidsetAvailableFrom(MonthDay availableFrom) voidsetAvailableUntil(String dateStr) Set availability end date from string format "MM-DD".voidsetAvailableUntil(MonthDay availableUntil) voidsetByproducts(List<RecipeByproduct> byproducts) voidvoidsetIngredients(List<IngredientSlot> ingredients) voidvoidsetOutputAmount(int outputAmount) voidsetOutputRef(RecipeItemRef outputRef) voidsetOutputVariants(List<Recipe.OutputVariant> variants) voidsetOverrideStrength(int overrideStrength) voidsetPackMetadata(ContentPackMetadata packMetadata) voidsetPressAnimation(PressAnimationProfile pressAnimation) voidsetProcessingTime(int processingTime) voidsetRules(List<RecipeRule> rules) voidsetSourceId(String sourceId) voidsetStation(String stationName) voidsetStation(CookingStation station) voidsetWeightedOutputs(List<WeightedOutput> weightedOutputs) toString()
-
Method Details
-
getAddonId
-
setAddonId
-
getStationName
- Overrides:
getStationNamein classRecipe
-
setStationName
- Overrides:
setStationNamein classRecipe
-
getStationTexture
-
setStationTexture
-
getDescription
- Overrides:
getDescriptionin classRecipe
-
setDescription
- Overrides:
setDescriptionin classRecipe
-