Class RecipeBookDuplicationRecipe

java.lang.Object
net.minecraft.world.item.crafting.CustomRecipe
com.petrolpark.core.recipe.book.RecipeBookDuplicationRecipe
All Implemented Interfaces:
net.minecraft.world.item.crafting.CraftingRecipe, net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>

public class RecipeBookDuplicationRecipe extends net.minecraft.world.item.crafting.CustomRecipe
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<RecipeBookDuplicationRecipe>
     
    final net.minecraft.world.item.crafting.Ingredient
     
    static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,RecipeBookDuplicationRecipe>
     

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

    CONDITIONAL_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    RecipeBookDuplicationRecipe(net.minecraft.world.item.crafting.Ingredient duplicationIngredient)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    assemble(net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.core.HolderLookup.Provider registries)
     
    boolean
    canCraftInDimensions(int width, int height)
     
    net.minecraft.world.item.crafting.Ingredient
     
    net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient>
     
    net.minecraft.world.item.crafting.RecipeSerializer<RecipeBookDuplicationRecipe>
     
    boolean
    matches(net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.world.level.Level level)
     

    Methods inherited from class net.minecraft.world.item.crafting.CustomRecipe

    category, getResultItem, isSpecial

    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.CraftingRecipe

    getType

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

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

    • CODEC

      public static final com.mojang.serialization.MapCodec<RecipeBookDuplicationRecipe> CODEC
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,RecipeBookDuplicationRecipe> STREAM_CODEC
    • duplicationIngredient

      public final net.minecraft.world.item.crafting.Ingredient duplicationIngredient
  • Constructor Details

    • RecipeBookDuplicationRecipe

      public RecipeBookDuplicationRecipe(net.minecraft.world.item.crafting.Ingredient duplicationIngredient)
  • Method Details

    • duplicationIngredient

      public net.minecraft.world.item.crafting.Ingredient duplicationIngredient()
    • getIngredients

      public net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> getIngredients()
    • matches

      public boolean matches(@Nonnull net.minecraft.world.item.crafting.CraftingInput input, @Nonnull net.minecraft.world.level.Level level)
    • assemble

      public net.minecraft.world.item.ItemStack assemble(@Nonnull net.minecraft.world.item.crafting.CraftingInput input, @Nonnull net.minecraft.core.HolderLookup.Provider registries)
    • canCraftInDimensions

      public boolean canCraftInDimensions(int width, int height)
    • getSerializer

      public net.minecraft.world.item.crafting.RecipeSerializer<RecipeBookDuplicationRecipe> getSerializer()