net.minecraft.recipe.crafting

public class ShapedRecipe

extends GeneralCraftingRecipe

All mapped superinterfaces:

CraftingRecipe, Recipe

net.minecraft.world.item.crafting.ShapedRecipe
net.minecraft.class_1869
net.minecraft.recipe.crafting.ShapedRecipe

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<ShapedRecipe>
MAP_CODEC
field_1_1182
CODEC
public static final PacketCodec<RegistryByteBuf, ShapedRecipe>
STREAM_CODEC
field_1_1184
PACKET_CODEC
public static final RecipeSerializer<ShapedRecipe>
SERIALIZER
field_1_1183
SERIALIZER
private final RawShapedRecipe
pattern
field_47320
raw
private final SimpleItemStackView
result
field_9053
result

Constructor summary

ModifierConstructor
public (Recipe$Settings settings, CraftingRecipe$RecipeBookLocation location, RawShapedRecipe raw, SimpleItemStackView result)

Method summary

Modifier and TypeMethod
public RecipeSerializer<ShapedRecipe>
getSerializer()
method_8119()
getSerializer()
public List<Optional<Ingredient>>
getIngredients()
method_61693()
getIngredients()
protected IngredientPlacement
createPlacementInfo()
method_1_1571()
createIngredientPlacement()
public boolean
matches(CraftingInput input, Level level)
method_17728(class_9694 arg0, class_1937 arg1)
matches(CraftingRecipeInput arg0, World arg1)
public ItemStack
assemble(CraftingInput input)
method_17727(class_9694 arg0)
craft(CraftingRecipeInput arg0)
public int
getWidth()
method_8150()
getWidth()
public int
getHeight()
method_8158()
getHeight()
public List<RecipeDisplay>
display()
method_64664()
getDisplays()
public ItemStack
assemble(RecipeInput input)
method_8116(class_9695 arg0)
craft(RecipeInput arg0)
public boolean
matches(RecipeInput input, Level level)
method_8115(class_9695 arg0, class_1937 arg1)
matches(RecipeInput arg0, World arg1)
private static SlotDisplay
lambda$display$0(Optional arg0)
method_64718(Optional arg0)
method_64718(Optional ingredient)
private static SimpleItemStackView
lambda$static$8(ShapedRecipe arg0)
method_1_1371(class_1869 arg0)
method_1_1371(ShapedRecipe recipe)
private static RawShapedRecipe
lambda$static$7(ShapedRecipe arg0)
method_1_1370(class_1869 arg0)
method_1_1370(ShapedRecipe recipe)
private static CraftingRecipe$RecipeBookLocation
lambda$static$6(ShapedRecipe arg0)
method_1_1369(class_1869 arg0)
method_1_1369(ShapedRecipe recipe)
private static Recipe$Settings
lambda$static$5(ShapedRecipe arg0)
method_1_1368(class_1869 arg0)
method_1_1368(ShapedRecipe recipe)
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_1_1363(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_1_1363(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)
private static SimpleItemStackView
lambda$static$4(ShapedRecipe arg0)
method_1_1367(class_1869 arg0)
method_1_1367(ShapedRecipe recipe)
private static RawShapedRecipe
lambda$static$3(ShapedRecipe arg0)
method_1_1366(class_1869 arg0)
method_1_1366(ShapedRecipe recipe)
private static CraftingRecipe$RecipeBookLocation
lambda$static$2(ShapedRecipe arg0)
method_1_1365(class_1869 arg0)
method_1_1365(ShapedRecipe recipe)
private static Recipe$Settings
lambda$static$1(ShapedRecipe arg0)
method_1_1364(class_1869 arg0)
method_1_1364(ShapedRecipe recipe)