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 cmp$a$a
intermediary net/minecraft/class_1869$class_1870$class_8787
named net/minecraft/recipe/ShapedRecipe$Serializer$RawShapedRecipe
official b
intermediary comp_1934
named group
official c
intermediary comp_1935
named category
official d
intermediary comp_1936
named key
official e
intermediary comp_1937
named pattern
official f
intermediary comp_1938
named result
official g
intermediary comp_1939
named showNotification
  • Field Details

    • group

      private final String group
      The field for the group record component.
    • category

      private final CraftingRecipeCategory category
      The field for the category record component.
    • key

      private final Map<String,Ingredient> key
      The field for the key record component.
    • pattern

      private final List<String> pattern
      The field for the pattern record component.
    • result

      private final ItemStack result
      The field for the result record component.
    • showNotification

      private final boolean showNotification
      The field for the showNotification record component.
    • CODEC

      public static final com.mojang.serialization.Codec<ShapedRecipe.Serializer.RawShapedRecipe> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lcmp$a$a;a:Lcom/mojang/serialization/Codec;
      intermediary field_46103 Lnet/minecraft/class_1869$class_1870$class_8787;field_46103:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/recipe/ShapedRecipe$Serializer$RawShapedRecipe;CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • group

      public String group()
      Returns the value of the group record component.
      Returns:
      the value of the group record component
    • category

      public CraftingRecipeCategory category()
      Returns the value of the category record component.
      Returns:
      the value of the category record component
    • key

      public Map<String,Ingredient> key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • pattern

      public List<String> pattern()
      Returns the value of the pattern record component.
      Returns:
      the value of the pattern record component
    • result

      public ItemStack result()
      Returns the value of the result record component.
      Returns:
      the value of the result record component
    • showNotification

      public boolean showNotification()
      Returns the value of the showNotification record component.
      Returns:
      the value of the showNotification record component