Record Class ShapedRecipe.Serializer.RawShapedRecipe
java.lang.Object
java.lang.Record
net.minecraft.world.item.crafting.ShapedRecipe.Serializer.RawShapedRecipe
- Enclosing class:
- ShapedRecipe.Serializer
static record ShapedRecipe.Serializer.RawShapedRecipe(String group, CraftingBookCategory category, Map<String,Ingredient> key, List<String> pattern, ItemStack result, boolean showNotification)
extends Record 
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final CraftingBookCategoryThe 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 SummaryConstructorsConstructorDescriptionRawShapedRecipe(String group, CraftingBookCategory category, Map<String, Ingredient> key, List<String> pattern, ItemStack result, boolean showNotification) Creates an instance of aRawShapedReciperecord class.
- 
Method SummaryModifier 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- 
groupThe field for thegrouprecord component.
- 
categoryThe field for thecategoryrecord component.
- 
keyThe field for thekeyrecord component.
- 
patternThe field for thepatternrecord component.
- 
resultThe field for theresultrecord component.
- 
showNotificationprivate final boolean showNotificationThe field for theshowNotificationrecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
RawShapedRecipeRawShapedRecipe(String group, CraftingBookCategory category, Map<String, Ingredient> key, List<String> pattern, ItemStack result, boolean showNotification) Creates an instance of aRawShapedReciperecord class.- Parameters:
- group- the value for the- grouprecord component
- category- the value for the- categoryrecord component
- key- the value for the- keyrecord component
- pattern- the value for the- patternrecord component
- result- the value for the- resultrecord component
- showNotification- the value for the- showNotificationrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
groupReturns the value of thegrouprecord component.- Returns:
- the value of the grouprecord component
 
- 
categoryReturns the value of thecategoryrecord component.- Returns:
- the value of the categoryrecord component
 
- 
keyReturns the value of thekeyrecord component.- Returns:
- the value of the keyrecord component
 
- 
patternReturns the value of thepatternrecord component.- Returns:
- the value of the patternrecord component
 
- 
resultReturns the value of theresultrecord component.- Returns:
- the value of the resultrecord component
 
- 
showNotificationpublic boolean showNotification()Returns the value of theshowNotificationrecord component.- Returns:
- the value of the showNotificationrecord component
 
 
-