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

public class OrechidRecipe extends Object implements OrechidRecipe
  • 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

      public StateIngredient getInput()
      Description copied from interface: OrechidRecipe
      Valid inputs for the recipe
      Specified by:
      getInput in interface OrechidRecipe
    • getOutput

      public StateIngredient getOutput()
      Description copied from interface: OrechidRecipe
      Output to display in recipes and to be used by default.
      Specified by:
      getOutput in interface OrechidRecipe
    • getWeight

      public int getWeight()
      Description copied from interface: OrechidRecipe
      Default 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:
      getWeight in interface OrechidRecipe
    • getWeight

      public int getWeight(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos)
      Description copied from interface: OrechidRecipe
      Location-sensitive weight, called with the position of the block to convert.
      Specified by:
      getWeight in interface OrechidRecipe
    • getWeightBonus

      public int getWeightBonus()
    • getBiomes

      public Optional<net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome>> getBiomes()
    • getSuccessFunction

      public Optional<net.minecraft.commands.CacheableFunction> getSuccessFunction()
      Specified by:
      getSuccessFunction in interface OrechidRecipe
    • getType

      @NotNull public @NotNull net.minecraft.world.item.crafting.RecipeType<? extends OrechidRecipe> getType()
      Specified by:
      getType in interface OrechidRecipe
      Specified by:
      getType in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • getSerializer

      public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()
      Specified by:
      getSerializer in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>