Class PotInteraction
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
Represents a special type of interaction that can happen when the player interacts with a botany pot.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.darkhax.bookshelf.common.api.function.SidedReloadableCache<RecipeCache<PotInteraction>> static final net.darkhax.bookshelf.common.api.function.SidedReloadableCache<Map<net.minecraft.resources.ResourceLocation, net.minecraft.world.item.crafting.RecipeHolder<PotInteraction>>> static final Supplier<net.minecraft.world.item.crafting.RecipeType<PotInteraction>> Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, STREAM_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidapply(@NotNull BotanyPotContext context) Applies the interaction effect to the given context.static @Nullable net.minecraft.world.item.crafting.RecipeHolder<PotInteraction> getInteraction(net.minecraft.world.level.Level level, BotanyPotContext context, net.minecraft.world.item.ItemStack stack) @NotNull net.minecraft.world.item.crafting.RecipeType<?> getType()Methods inherited from class net.darkhax.botanypots.common.api.data.recipes.BotanyPotRecipe
assemble, canCraftInDimensions, couldMatch, getResultItem, hoverTooltip, isSpecial, recipeCodec, recipeStream, showNotificationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getIngredients, getRemainingItems, getSerializer, getToastSymbol, isIncomplete, matches
-
Field Details
-
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
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)
-