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

public abstract class PotInteraction extends BotanyPotRecipe
Represents a special type of interaction that can happen when the player interacts with a botany pot.
  • Field Details

    • TYPE

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

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

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

    • PotInteraction

      public PotInteraction()
  • Method Details

    • apply

      public abstract void apply(@NotNull @NotNull BotanyPotContext context)
      Applies the interaction effect to the given context.
      Parameters:
      context - The current context.
    • getType

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

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