Package vazkii.botania.api.recipe
Interface PureDaisyRecipe
- All Superinterfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
- All Known Implementing Classes:
PureDaisyRecipe
public interface PureDaisyRecipe
extends net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
Field Summary
FieldsFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, STREAM_CODEC -
Method Summary
Modifier and TypeMethodDescriptiondefault net.minecraft.world.item.ItemStackassemble(net.minecraft.world.item.crafting.RecipeInput container, net.minecraft.core.HolderLookup.Provider registryAccess) Deprecated.Not meant to be used for item crafting in a container.default booleancanCraftInDimensions(int width, int height) Deprecated.Not meant to be used for item crafting in a container.getInput()Returns the input block state definition.Returns the output block state definition.default net.minecraft.world.item.ItemStackgetResultItem(net.minecraft.core.HolderLookup.Provider registryAccess) Deprecated.Not meant to be used for item crafting in a container.Optional<net.minecraft.commands.CacheableFunction> Returns the optional mcfunction to execute when the conversion takes place.intgetTime()Returns the number of times a source block must be ticked by the flower before it converts.default net.minecraft.world.item.crafting.RecipeType<?> getType()booleanReturns whether any relevant block state properties of the matched block will be copied over to the converted block as the conversion takes place.default booleandefault booleanmatches(net.minecraft.world.item.crafting.RecipeInput container, net.minecraft.world.level.Level level) Deprecated.Not meant to be used for item crafting in a container.booleanmatches(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) This gets called every tick, please be careful with your checks.Methods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getIngredients, getRemainingItems, getSerializer, getToastSymbol, isIncomplete, showNotification
-
Field Details
-
TYPE_ID
static final net.minecraft.resources.ResourceLocation TYPE_ID
-
-
Method Details
-
matches
boolean matches(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) This gets called every tick, please be careful with your checks. -
getInput
StateIngredient getInput()Returns the input block state definition. -
getOutput
StateIngredient getOutput()Returns the output block state definition. If it matches multiple block states, one of those it picked at random with equal weights when the conversion takes place. -
isCopyInputProperties
boolean isCopyInputProperties()Returns whether any relevant block state properties of the matched block will be copied over to the converted block as the conversion takes place. (Used to e.g. keep the rotation of converted logs.) -
getSuccessFunction
Optional<net.minecraft.commands.CacheableFunction> getSuccessFunction()Returns the optional mcfunction to execute when the conversion takes place. (Might not be available on client-side mirrors of the recipe definition.) -
getTime
int getTime()Returns the number of times a source block must be ticked by the flower before it converts. Note that the Pure Daisy ticks its surrounding blocks in a round-robin way, one at a time. -
getType
default net.minecraft.world.item.crafting.RecipeType<?> getType()- Specified by:
getTypein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
matches
@Deprecated default boolean matches(net.minecraft.world.item.crafting.RecipeInput container, net.minecraft.world.level.Level level) Deprecated.Not meant to be used for item crafting in a container.- Specified by:
matchesin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
assemble
@Deprecated default net.minecraft.world.item.ItemStack assemble(net.minecraft.world.item.crafting.RecipeInput container, @NotNull net.minecraft.core.HolderLookup.Provider registryAccess) Deprecated.Not meant to be used for item crafting in a container.- Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
canCraftInDimensions
Deprecated.Not meant to be used for item crafting in a container.- Specified by:
canCraftInDimensionsin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
getResultItem
@Deprecated default net.minecraft.world.item.ItemStack getResultItem(@NotNull net.minecraft.core.HolderLookup.Provider registryAccess) Deprecated.Not meant to be used for item crafting in a container.- Specified by:
getResultItemin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
isSpecial
default boolean isSpecial()- Specified by:
isSpecialin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-