Class BottledLetterRecipe

java.lang.Object
net.minecraft.world.item.crafting.NormalCraftingRecipe
com.wdiscute.starcatcher.recipe.BottledLetterRecipe
All Implemented Interfaces:
net.minecraft.world.item.crafting.CraftingRecipe, net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>

public class BottledLetterRecipe extends net.minecraft.world.item.crafting.NormalCraftingRecipe
  • 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<BottledLetterRecipe>
     
    static final net.minecraft.world.item.crafting.RecipeSerializer<BottledLetterRecipe>
     
    static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, BottledLetterRecipe>
     

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

    bookInfo, commonInfo

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

    CODEC, CONDITIONAL_CODEC, KEY_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    BottledLetterRecipe(net.minecraft.world.item.crafting.Recipe.CommonInfo commonInfo, net.minecraft.world.item.crafting.CraftingRecipe.CraftingBookInfo bookInfo, net.minecraft.world.item.ItemStackTemplate result, List<net.minecraft.world.item.crafting.Ingredient> ingredients)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    assemble(net.minecraft.world.item.crafting.CraftingInput input)
     
    protected net.minecraft.world.item.crafting.PlacementInfo
     
    List<net.minecraft.world.item.crafting.display.RecipeDisplay>
     
    net.minecraft.world.item.crafting.RecipeSerializer<BottledLetterRecipe>
     
    boolean
    matches(net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.world.level.Level level)
     
    @Nullable net.minecraft.world.item.ItemStackTemplate
    Returns the result of this shapeless recipe or null if it is not static and needs ot be obtained by assembling it.

    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

    • MAP_CODEC

      public static final com.mojang.serialization.MapCodec<BottledLetterRecipe> MAP_CODEC
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, BottledLetterRecipe> STREAM_CODEC
    • SERIALIZER

      public static final net.minecraft.world.item.crafting.RecipeSerializer<BottledLetterRecipe> SERIALIZER
  • Constructor Details

    • BottledLetterRecipe

      public BottledLetterRecipe(net.minecraft.world.item.crafting.Recipe.CommonInfo commonInfo, net.minecraft.world.item.crafting.CraftingRecipe.CraftingBookInfo bookInfo, net.minecraft.world.item.ItemStackTemplate result, List<net.minecraft.world.item.crafting.Ingredient> ingredients)
  • Method Details

    • getSerializer

      public net.minecraft.world.item.crafting.RecipeSerializer<BottledLetterRecipe> 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>
      Specified by:
      getSerializer in class net.minecraft.world.item.crafting.NormalCraftingRecipe
    • createPlacementInfo

      protected net.minecraft.world.item.crafting.PlacementInfo createPlacementInfo()
      Specified by:
      createPlacementInfo in class net.minecraft.world.item.crafting.NormalCraftingRecipe
    • matches

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

      public @Nullable net.minecraft.world.item.ItemStackTemplate result()
      Returns the result of this shapeless recipe or null if it is not static and needs ot be obtained by assembling it.
      Returns:
      the result of this shapeless recipe or null if it is not static and needs ot be obtained by assembling it
    • assemble

      public net.minecraft.world.item.ItemStack assemble(net.minecraft.world.item.crafting.CraftingInput input)
    • display

      public List<net.minecraft.world.item.crafting.display.RecipeDisplay> display()