Class LegacyUpgradeRecipe

java.lang.Object
net.minecraft.world.item.crafting.LegacyUpgradeRecipe
All Implemented Interfaces:
Recipe<Container>, SmithingRecipe

@Deprecated(forRemoval=true) public class LegacyUpgradeRecipe extends Object implements SmithingRecipe
Deprecated, for removal: This API element is subject to removal in a future version.
  • Field Details

    • base

      final Ingredient base
      Deprecated, for removal: This API element is subject to removal in a future version.
    • addition

      final Ingredient addition
      Deprecated, for removal: This API element is subject to removal in a future version.
    • result

      final ItemStack result
      Deprecated, for removal: This API element is subject to removal in a future version.
    • id

      private final ResourceLocation id
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • LegacyUpgradeRecipe

      public LegacyUpgradeRecipe(ResourceLocation p_266733_, Ingredient p_267056_, Ingredient p_267062_, ItemStack p_267137_)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • matches

      public boolean matches(Container p_267029_, Level p_267244_)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      matches in interface Recipe<Container>
    • assemble

      public ItemStack assemble(Container p_266770_, RegistryAccess p_267229_)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      assemble in interface Recipe<Container>
    • canCraftInDimensions

      public boolean canCraftInDimensions(int p_267193_, int p_266967_)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      canCraftInDimensions in interface Recipe<Container>
      Specified by:
      canCraftInDimensions in interface SmithingRecipe
    • getResultItem

      public ItemStack getResultItem(RegistryAccess p_267153_)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getResultItem in interface Recipe<Container>
    • isTemplateIngredient

      public boolean isTemplateIngredient(ItemStack p_267003_)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isTemplateIngredient in interface SmithingRecipe
    • isBaseIngredient

      public boolean isBaseIngredient(ItemStack p_266836_)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isBaseIngredient in interface SmithingRecipe
    • isAdditionIngredient

      public boolean isAdditionIngredient(ItemStack p_267128_)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isAdditionIngredient in interface SmithingRecipe
    • getId

      public ResourceLocation getId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getId in interface Recipe<Container>
    • getSerializer

      public RecipeSerializer<?> getSerializer()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getSerializer in interface Recipe<Container>
    • isIncomplete

      public boolean isIncomplete()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isIncomplete in interface Recipe<Container>