Uses of Record Class
net.minecraft.world.item.crafting.ShapedRecipePattern.Data
-
Uses of ShapedRecipePattern.Data in net.minecraft.world.item.crafting
Modifier and TypeFieldDescriptionprivate final Optional<ShapedRecipePattern.Data>
ShapedRecipePattern.data
The field for thedata
record component.static final com.mojang.serialization.MapCodec<ShapedRecipePattern.Data>
ShapedRecipePattern.Data.MAP_CODEC
Modifier and TypeMethodDescriptionShapedRecipePattern.data()
Returns the value of thedata
record component.Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.DataResult<ShapedRecipePattern>
ShapedRecipePattern.unpack
(ShapedRecipePattern.Data p_312037_) ModifierConstructorDescriptionShapedRecipePattern
(int width, int height, NonNullList<Ingredient> ingredients, Optional<ShapedRecipePattern.Data> data) Creates an instance of aShapedRecipePattern
record class.