Package net.minecraft.recipe
Record Class ShapedRecipe.Serializer.RawShapedRecipe
java.lang.Object
java.lang.Record
net.minecraft.recipe.ShapedRecipe.Serializer.RawShapedRecipe
- Record Components:
group-category-key-pattern-result-showNotification-
- Enclosing class:
ShapedRecipe.Serializer
private static record ShapedRecipe.Serializer.RawShapedRecipe(String group, CraftingRecipeCategory category, Map<String,Ingredient> key, List<String> pattern, ItemStack result, boolean showNotification)
extends Record
- Mappings:
Namespace Name official cov$a$aintermediary net/minecraft/class_1869$class_1870$class_8787named net/minecraft/recipe/ShapedRecipe$Serializer$RawShapedRecipeofficial bintermediary comp_1934named groupofficial cintermediary comp_1935named categoryofficial dintermediary comp_1936named keyofficial eintermediary comp_1937named patternofficial fintermediary comp_1938named resultofficial gintermediary comp_1939named showNotification
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CraftingRecipeCategoryThe field for thecategoryrecord component.static final com.mojang.serialization.Codec<ShapedRecipe.Serializer.RawShapedRecipe>private final StringThe field for thegrouprecord component.private final Map<String,Ingredient> The field for thekeyrecord component.The field for thepatternrecord component.private final ItemStackThe field for theresultrecord component.private final booleanThe field for theshowNotificationrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRawShapedRecipe(String string, CraftingRecipeCategory craftingRecipeCategory, Map<String, Ingredient> map, List<String> list, ItemStack itemStack, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.final booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.pattern()Returns the value of thepatternrecord component.result()Returns the value of theresultrecord component.booleanReturns the value of theshowNotificationrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
group
The field for thegrouprecord component. -
category
The field for thecategoryrecord component. -
key
The field for thekeyrecord component. -
pattern
The field for thepatternrecord component. -
result
The field for theresultrecord component. -
showNotification
private final boolean showNotificationThe field for theshowNotificationrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLcov$a$a;a:Lcom/mojang/serialization/Codec;intermediary field_46103Lnet/minecraft/class_1869$class_1870$class_8787;field_46103:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/recipe/ShapedRecipe$Serializer$RawShapedRecipe;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
RawShapedRecipe
private RawShapedRecipe(String string, CraftingRecipeCategory craftingRecipeCategory, Map<String, Ingredient> map, List<String> list, ItemStack itemStack, boolean bool)
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
showNotification
public boolean showNotification()Returns the value of theshowNotificationrecord component.- Returns:
- the value of the
showNotificationrecord component
-