Class UpgradeWithEnchantedBookRecipe

java.lang.Object
net.minecraft.world.item.crafting.NormalCraftingRecipe
net.minecraft.world.item.crafting.ShapedRecipe
com.refinedmods.refinedstorage.common.upgrade.UpgradeWithEnchantedBookRecipe
All Implemented Interfaces:
net.minecraft.world.item.crafting.CraftingRecipe, net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>

public class UpgradeWithEnchantedBookRecipe extends net.minecraft.world.item.crafting.ShapedRecipe
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.world.item.crafting.CraftingRecipe

    net.minecraft.world.item.crafting.CraftingRecipe.CraftingBookInfo

    Nested classes/interfaces inherited from interface net.minecraft.world.item.crafting.Recipe

    net.minecraft.world.item.crafting.Recipe.BookInfo<CategoryType>, net.minecraft.world.item.crafting.Recipe.CommonInfo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<UpgradeWithEnchantedBookRecipe>
     
    static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, UpgradeWithEnchantedBookRecipe>
     

    Fields inherited from class net.minecraft.world.item.crafting.ShapedRecipe

    MAP_CODEC, SERIALIZER

    Fields inherited from class net.minecraft.world.item.crafting.NormalCraftingRecipe

    bookInfo, commonInfo

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

    KEY_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    UpgradeWithEnchantedBookRecipe(net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> enchantment, int level, net.minecraft.world.item.ItemStackTemplate resultItem)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.crafting.RecipeSerializer<net.minecraft.world.item.crafting.ShapedRecipe>
     
    boolean
    matches(net.minecraft.world.item.crafting.CraftingInput craftingContainer, net.minecraft.world.level.Level theLevel)
     

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

    assemble, createPlacementInfo, display, getHeight, getIngredients, getWidth

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

    category, group, placementInfo, showNotification

    Methods inherited from class Object

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

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

    getRemainingItems, getType, recipeBookCategory

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

    isSpecial
  • Field Details

  • Constructor Details

    • UpgradeWithEnchantedBookRecipe

      public UpgradeWithEnchantedBookRecipe(net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> enchantment, int level, net.minecraft.world.item.ItemStackTemplate resultItem)
  • Method Details

    • matches

      public boolean matches(net.minecraft.world.item.crafting.CraftingInput craftingContainer, net.minecraft.world.level.Level theLevel)
      Specified by:
      matches in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
      Overrides:
      matches in class net.minecraft.world.item.crafting.ShapedRecipe
    • getSerializer

      public net.minecraft.world.item.crafting.RecipeSerializer<net.minecraft.world.item.crafting.ShapedRecipe> getSerializer()
      Specified by:
      getSerializer in interface net.minecraft.world.item.crafting.CraftingRecipe
      Specified by:
      getSerializer in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
      Overrides:
      getSerializer in class net.minecraft.world.item.crafting.ShapedRecipe