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

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     

    Fields inherited from interface net.minecraft.world.item.crafting.Recipe

    CODEC, STREAM_CODEC
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.world.item.ItemStack
    assemble(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 boolean
    canCraftInDimensions(int width, int height)
    Deprecated.
    Not meant to be used for item crafting in a container.
    Returns the input block state definition.
    Returns the output block state definition.
    default net.minecraft.world.item.ItemStack
    getResultItem(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.
    int
    Returns the number of times a source block must be ticked by the flower before it converts.
    default net.minecraft.world.item.crafting.RecipeType<?>
     
    boolean
    Returns whether any relevant block state properties of the matched block will be copied over to the converted block as the conversion takes place.
    default boolean
     
    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.
    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.

    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:
      getType in interface net.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:
      matches in interface net.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:
      assemble in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • canCraftInDimensions

      @Deprecated default boolean canCraftInDimensions(int width, int height)
      Deprecated.
      Not meant to be used for item crafting in a container.
      Specified by:
      canCraftInDimensions in interface net.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:
      getResultItem in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • isSpecial

      default boolean isSpecial()
      Specified by:
      isSpecial in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>