Class SequencedAssemblyRecipe

java.lang.Object
com.simibubi.create.content.processing.sequenced.SequencedAssemblyRecipe
All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>

public class SequencedAssemblyRecipe extends Object implements net.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected net.minecraft.world.item.crafting.Ingredient
     
    protected int
     
     
    protected List<SequencedRecipe<?>>
     
     
     

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

    CODEC, CONDITIONAL_CODEC, STREAM_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addToTooltip(net.neoforged.neoforge.event.entity.player.ItemTooltipEvent event)
     
    net.minecraft.world.item.ItemStack
    assemble(net.neoforged.neoforge.items.wrapper.RecipeWrapper input, net.minecraft.core.HolderLookup.Provider registries)
     
    boolean
    canCraftInDimensions(int width, int height)
     
    net.minecraft.world.item.crafting.Ingredient
     
    int
     
    float
     
    static <I extends net.minecraft.world.item.crafting.RecipeInput, R extends ProcessingRecipe<I, ?>>
    Optional<net.minecraft.world.item.crafting.RecipeHolder<R>>
    getRecipe(net.minecraft.world.level.Level world, I inv, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass)
     
    static <I extends net.minecraft.world.item.crafting.RecipeInput, R extends ProcessingRecipe<I, ?>>
    Optional<net.minecraft.world.item.crafting.RecipeHolder<R>>
    getRecipe(net.minecraft.world.level.Level world, I inv, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass, Predicate<? super net.minecraft.world.item.crafting.RecipeHolder<R>> recipeFilter)
     
    static <R extends ProcessingRecipe<?, ?>>
    Optional<net.minecraft.world.item.crafting.RecipeHolder<R>>
    getRecipe(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack item, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass)
     
    static <R extends ProcessingRecipe<?, ?>>
    Stream<net.minecraft.world.item.crafting.RecipeHolder<R>>
    getRecipes(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack item, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass)
     
    net.minecraft.world.item.ItemStack
    getResultItem(net.minecraft.core.HolderLookup.Provider registries)
     
     
    net.minecraft.world.item.crafting.RecipeSerializer<?>
     
    net.minecraft.world.item.ItemStack
     
    net.minecraft.world.item.crafting.RecipeType<?>
     
    boolean
     
    boolean
    matches(net.neoforged.neoforge.items.wrapper.RecipeWrapper inv, net.minecraft.world.level.Level level)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    getGroup, getIngredients, getRemainingItems, getToastSymbol, isIncomplete, showNotification
  • Field Details

  • Constructor Details

  • Method Details

    • getRecipe

      public static <I extends net.minecraft.world.item.crafting.RecipeInput, R extends ProcessingRecipe<I, ?>> Optional<net.minecraft.world.item.crafting.RecipeHolder<R>> getRecipe(net.minecraft.world.level.Level world, I inv, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass)
    • getRecipe

      public static <I extends net.minecraft.world.item.crafting.RecipeInput, R extends ProcessingRecipe<I, ?>> Optional<net.minecraft.world.item.crafting.RecipeHolder<R>> getRecipe(net.minecraft.world.level.Level world, I inv, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass, Predicate<? super net.minecraft.world.item.crafting.RecipeHolder<R>> recipeFilter)
    • getRecipe

      public static <R extends ProcessingRecipe<?, ?>> Optional<net.minecraft.world.item.crafting.RecipeHolder<R>> getRecipe(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack item, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass)
    • getRecipes

      public static <R extends ProcessingRecipe<?, ?>> Stream<net.minecraft.world.item.crafting.RecipeHolder<R>> getRecipes(net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack item, net.minecraft.world.item.crafting.RecipeType<R> type, Class<R> recipeClass)
    • getLoops

      public int getLoops()
    • matches

      public boolean matches(net.neoforged.neoforge.items.wrapper.RecipeWrapper inv, net.minecraft.world.level.Level level)
      Specified by:
      matches in interface net.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
    • assemble

      public net.minecraft.world.item.ItemStack assemble(net.neoforged.neoforge.items.wrapper.RecipeWrapper input, net.minecraft.core.HolderLookup.Provider registries)
      Specified by:
      assemble in interface net.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
    • canCraftInDimensions

      public boolean canCraftInDimensions(int width, int height)
      Specified by:
      canCraftInDimensions in interface net.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
    • getResultItem

      public net.minecraft.world.item.ItemStack getResultItem(net.minecraft.core.HolderLookup.Provider registries)
      Specified by:
      getResultItem in interface net.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
    • getOutputChance

      public float getOutputChance()
    • getSerializer

      public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()
      Specified by:
      getSerializer in interface net.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
    • isSpecial

      public boolean isSpecial()
      Specified by:
      isSpecial in interface net.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
    • getType

      public net.minecraft.world.item.crafting.RecipeType<?> getType()
      Specified by:
      getType in interface net.minecraft.world.item.crafting.Recipe<net.neoforged.neoforge.items.wrapper.RecipeWrapper>
    • addToTooltip

      public static void addToTooltip(net.neoforged.neoforge.event.entity.player.ItemTooltipEvent event)
    • getIngredient

      public net.minecraft.world.item.crafting.Ingredient getIngredient()
    • getSequence

      public List<SequencedRecipe<?>> getSequence()
    • getTransitionalItem

      public net.minecraft.world.item.ItemStack getTransitionalItem()