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.CraftingBookInfoNested 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
FieldsModifier and TypeFieldDescriptionstatic 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, commonInfoFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, KEY_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionBottledLetterRecipe(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 TypeMethodDescriptionnet.minecraft.world.item.ItemStackassemble(net.minecraft.world.item.crafting.CraftingInput input) protected net.minecraft.world.item.crafting.PlacementInfoList<net.minecraft.world.item.crafting.display.RecipeDisplay> display()net.minecraft.world.item.crafting.RecipeSerializer<BottledLetterRecipe> booleanmatches(net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.world.level.Level level) @Nullable net.minecraft.world.item.ItemStackTemplateresult()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, showNotificationMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.CraftingRecipe
getRemainingItems, getType, recipeBookCategoryMethods inherited from interface net.minecraft.world.item.crafting.Recipe
isSpecial
-
Field Details
-
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
- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.CraftingRecipe- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>- Specified by:
getSerializerin classnet.minecraft.world.item.crafting.NormalCraftingRecipe
-
createPlacementInfo
protected net.minecraft.world.item.crafting.PlacementInfo createPlacementInfo()- Specified by:
createPlacementInfoin classnet.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
-