Class LodestoneInWorldRecipe<T extends net.minecraft.world.item.crafting.RecipeInput>

java.lang.Object
team.lodestar.lodestone.systems.recipe.LodestoneInWorldRecipe<T>
All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<T>

public abstract class LodestoneInWorldRecipe<T extends net.minecraft.world.item.crafting.RecipeInput> extends Object implements net.minecraft.world.item.crafting.Recipe<T>
A Recipe Class designed for In-World Crafting without the presence of an interface. Overrides most methods that are only needed when considering an interface.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.world.item.ItemStack
     

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

    CODEC, CONDITIONAL_CODEC, STREAM_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    LodestoneInWorldRecipe(net.minecraft.world.item.crafting.RecipeSerializer<?> recipeSerializer, net.minecraft.world.item.crafting.RecipeType<?> recipeType)
     
    LodestoneInWorldRecipe(net.minecraft.world.item.crafting.RecipeSerializer<?> recipeSerializer, net.minecraft.world.item.crafting.RecipeType<?> recipeType, net.minecraft.world.item.ItemStack output)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    assemble(T input, net.minecraft.core.HolderLookup.Provider registries)
     
    boolean
    canCraftInDimensions(int width, int height)
     
    net.minecraft.world.item.ItemStack
    getResultItem(net.minecraft.core.HolderLookup.Provider registries)
     
    net.minecraft.world.item.crafting.RecipeSerializer<?>
     
    net.minecraft.world.item.crafting.RecipeType<?>
     

    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, isSpecial, matches, showNotification
  • Field Details

    • output

      public final net.minecraft.world.item.ItemStack output
  • Constructor Details

    • LodestoneInWorldRecipe

      public LodestoneInWorldRecipe(net.minecraft.world.item.crafting.RecipeSerializer<?> recipeSerializer, net.minecraft.world.item.crafting.RecipeType<?> recipeType, net.minecraft.world.item.ItemStack output)
    • LodestoneInWorldRecipe

      public LodestoneInWorldRecipe(net.minecraft.world.item.crafting.RecipeSerializer<?> recipeSerializer, net.minecraft.world.item.crafting.RecipeType<?> recipeType)
  • Method Details

    • assemble

      public net.minecraft.world.item.ItemStack assemble(T input, net.minecraft.core.HolderLookup.Provider registries)
      Specified by:
      assemble in interface net.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.item.crafting.RecipeInput>
    • 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<T extends net.minecraft.world.item.crafting.RecipeInput>
    • canCraftInDimensions

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

      public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()
      Specified by:
      getSerializer in interface net.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.item.crafting.RecipeInput>
    • getType

      public net.minecraft.world.item.crafting.RecipeType<?> getType()
      Specified by:
      getType in interface net.minecraft.world.item.crafting.Recipe<T extends net.minecraft.world.item.crafting.RecipeInput>