java.lang.Object
net.darkhax.botanypots.common.api.data.recipes.BotanyPotRecipe
net.darkhax.botanypots.common.api.data.recipes.fertilizer.Fertilizer
All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<BotanyPotContext>
Direct Known Subclasses:
BasicFertilizer

public abstract class Fertilizer extends BotanyPotRecipe
Represents a fertilizer interaction with a crop.
  • Field Details

    • TYPE

      public static final Supplier<net.minecraft.world.item.crafting.RecipeType<Fertilizer>> TYPE
    • RECIPES

      public static final net.darkhax.bookshelf.common.api.function.SidedReloadableCache<Map<net.minecraft.resources.ResourceLocation,net.minecraft.world.item.crafting.RecipeHolder<Fertilizer>>> RECIPES
    • CACHE

      public static final net.darkhax.bookshelf.common.api.function.SidedReloadableCache<RecipeCache<Fertilizer>> CACHE
  • Constructor Details

    • Fertilizer

      public Fertilizer()
  • Method Details

    • apply

      public abstract void apply(@NotNull @NotNull BotanyPotContext context, @NotNull @NotNull net.minecraft.world.level.Level level)
      Applies the fertilizer to the crop.
      Parameters:
      context - The context that the fertilizer is being used in.
      level - The current game level.
    • getType

      @NotNull public @NotNull net.minecraft.world.item.crafting.RecipeType<?> getType()
    • getFertilizer

      @Nullable public static @Nullable net.minecraft.world.item.crafting.RecipeHolder<Fertilizer> getFertilizer(net.minecraft.world.level.Level level, BotanyPotContext context, net.minecraft.world.item.ItemStack stack)