Package vazkii.botania.common.crafting
Class OrechidRecipe
java.lang.Object
vazkii.botania.common.crafting.OrechidRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>,OrechidRecipe
- Direct Known Subclasses:
MarimorphosisRecipe,OrechidIgnemRecipe
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface vazkii.botania.api.recipe.OrechidRecipe
IGNEM_TYPE_ID, MARIMORPHOSIS_TYPE_ID, TYPE_IDFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionOrechidRecipe(StateIngredient input, StateIngredient output, int weight, @Nullable net.minecraft.commands.CacheableFunction successFunction) OrechidRecipe(StateIngredient input, StateIngredient output, int weight, @Nullable net.minecraft.commands.CacheableFunction successFunction, int weightBonus, @Nullable net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> biomes) -
Method Summary
Modifier and TypeMethodDescriptionOptional<net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome>> getInput()Valid inputs for the recipeOutput to display in recipes and to be used by default.net.minecraft.world.item.crafting.RecipeSerializer<?> Optional<net.minecraft.commands.CacheableFunction> @NotNull net.minecraft.world.item.crafting.RecipeType<? extends OrechidRecipe> getType()intDefault weight, used if no special weight logic is provided, and to display in recipes (the JEI/REI displayed output per 64 input depends on the sum of default weights).intgetWeight(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos) Location-sensitive weight, called with the position of the block to convert.intMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface vazkii.botania.api.recipe.OrechidRecipe
assemble, canCraftInDimensions, getOutput, getResultItem, isSpecial, matchesMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getIngredients, getRemainingItems, getToastSymbol, isIncomplete, showNotification
-
Constructor Details
-
OrechidRecipe
public OrechidRecipe(StateIngredient input, StateIngredient output, int weight, @Nullable @Nullable net.minecraft.commands.CacheableFunction successFunction) -
OrechidRecipe
public OrechidRecipe(StateIngredient input, StateIngredient output, int weight, @Nullable @Nullable net.minecraft.commands.CacheableFunction successFunction, int weightBonus, @Nullable @Nullable net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> biomes)
-
-
Method Details
-
getInput
Description copied from interface:OrechidRecipeValid inputs for the recipe- Specified by:
getInputin interfaceOrechidRecipe
-
getOutput
Description copied from interface:OrechidRecipeOutput to display in recipes and to be used by default.- Specified by:
getOutputin interfaceOrechidRecipe
-
getWeight
public int getWeight()Description copied from interface:OrechidRecipeDefault weight, used if no special weight logic is provided, and to display in recipes (the JEI/REI displayed output per 64 input depends on the sum of default weights).- Specified by:
getWeightin interfaceOrechidRecipe
-
getWeight
public int getWeight(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos) Description copied from interface:OrechidRecipeLocation-sensitive weight, called with the position of the block to convert.- Specified by:
getWeightin interfaceOrechidRecipe
-
getWeightBonus
public int getWeightBonus() -
getBiomes
-
getSuccessFunction
- Specified by:
getSuccessFunctionin interfaceOrechidRecipe
-
getType
@NotNull public @NotNull net.minecraft.world.item.crafting.RecipeType<? extends OrechidRecipe> getType()- Specified by:
getTypein interfaceOrechidRecipe- Specified by:
getTypein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
getSerializer
public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-