Class AbstractArtisanRecipe

java.lang.Object
com.wdiscute.artisan.recipe.AbstractArtisanRecipe
All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<ArtisanRecipeInput>
Direct Known Subclasses:
AgingCaskRecipe, AncientCaskRecipe, BaitMakerRecipe, ChargingRodRecipe, CheesePressRecipe, CrystalariumRecipe, DehydratorRecipe, DeluxeWormFarmRecipe, EspressoMachineRecipe, FishSmokerRecipe, LoomRecipe, MayonnaiseMachineRecipe, OilMakerRecipe, PreservesJarRecipe, RecyclingMachineRecipe, SeedMakerRecipe, WineKegRecipe

public abstract class AbstractArtisanRecipe extends Object implements net.minecraft.world.item.crafting.Recipe<ArtisanRecipeInput>
  • Field Details

    • RANK_ORDER

      public static final Comparator<net.minecraft.world.item.crafting.RecipeHolder<? extends AbstractArtisanRecipe>> RANK_ORDER
    • ingredients

      public List<net.minecraft.world.item.crafting.Ingredient> ingredients
    • requiresUpgrade

      public List<net.minecraft.world.item.crafting.Ingredient> requiresUpgrade
    • result

      public List<ChancedStack> result
    • processing_hours

      public int processing_hours
    • rank

      public int rank
  • Constructor Details

    • AbstractArtisanRecipe

      public AbstractArtisanRecipe(net.minecraft.world.item.crafting.RecipeType<?> type, List<net.minecraft.world.item.crafting.Ingredient> ingredients, List<ChancedStack> result, int processing_hours, List<net.minecraft.world.item.crafting.Ingredient> requiredUpgrades, int rank)
  • Method Details

    • matches

      public boolean matches(ArtisanRecipeInput input, net.minecraft.world.level.Level level)
      Specified by:
      matches in interface net.minecraft.world.item.crafting.Recipe<ArtisanRecipeInput>
    • assemble

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

      public boolean canCraftInDimensions(int width, int height)
      Specified by:
      canCraftInDimensions in interface net.minecraft.world.item.crafting.Recipe<ArtisanRecipeInput>
    • getHours

      public int getHours()
    • getIngredients

      public net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> getIngredients()
      Specified by:
      getIngredients in interface net.minecraft.world.item.crafting.Recipe<ArtisanRecipeInput>
    • upgradesMatches

      public boolean upgradesMatches(List<net.minecraft.world.item.ItemStack> upgrades)
    • 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<ArtisanRecipeInput>
    • getResult

      public List<ChancedStack> getResult()
    • getType

      @NotNull public @NotNull net.minecraft.world.item.crafting.RecipeType<?> getType()
      Specified by:
      getType in interface net.minecraft.world.item.crafting.Recipe<ArtisanRecipeInput>