Record Class SmithingTransformRecipeJsonBuilder.SmithingTransformRecipeJsonProvider

java.lang.Object
java.lang.Record
net.minecraft.data.server.recipe.SmithingTransformRecipeJsonBuilder.SmithingTransformRecipeJsonProvider
Record Components:
id -
serializer -
template -
base -
addition -
result -
advancement -
All Implemented Interfaces:
RecipeJsonProvider
Enclosing class:
SmithingTransformRecipeJsonBuilder

public static record SmithingTransformRecipeJsonBuilder.SmithingTransformRecipeJsonProvider(Identifier id, RecipeSerializer<?> serializer, Ingredient template, Ingredient base, Ingredient addition, Item result, AdvancementEntry advancement) extends Record implements RecipeJsonProvider
Mappings:
Namespace Name
official lz$a
intermediary net/minecraft/class_8074$class_8075
named net/minecraft/data/server/recipe/SmithingTransformRecipeJsonBuilder$SmithingTransformRecipeJsonProvider
official a
intermediary comp_1230
named id
official b
intermediary comp_1231
named serializer
official c
intermediary comp_1224
named template
official d
intermediary comp_1225
named base
official e
intermediary comp_1226
named addition
official f
intermediary comp_1227
named result
official g
intermediary comp_1235
named advancement
  • Field Details

  • Constructor Details

    • SmithingTransformRecipeJsonProvider

      public SmithingTransformRecipeJsonProvider(Identifier id, RecipeSerializer<?> type, Ingredient template, Ingredient base, Ingredient addition, Item result, AdvancementEntry advancement)
      Mappings:
      Namespace Name Mixin selector
      official <init> Llz$a;<init>(Laew;Lcmm;Lcmg;Lcmg;Lcmg;Lcja;Laf;)V
      intermediary <init> Lnet/minecraft/class_8074$class_8075;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_1865;Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1792;Lnet/minecraft/class_8779;)V
      named <init> Lnet/minecraft/data/server/recipe/SmithingTransformRecipeJsonBuilder$SmithingTransformRecipeJsonProvider;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/recipe/RecipeSerializer;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/item/Item;Lnet/minecraft/advancement/AdvancementEntry;)V
  • Method Details

    • serialize

      public void serialize(com.google.gson.JsonObject json)
      Specified by:
      serialize in interface RecipeJsonProvider
      Mappings:
      Namespace Name Mixin selector
      official a Llq;a(Lcom/google/gson/JsonObject;)V
      intermediary method_10416 Lnet/minecraft/class_2444;method_10416(Lcom/google/gson/JsonObject;)V
      named serialize Lnet/minecraft/data/server/recipe/RecipeJsonProvider;serialize(Lcom/google/gson/JsonObject;)V
    • 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 o)
      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. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public Identifier id()
      Specified by:
      id in interface RecipeJsonProvider
      Mappings:
      Namespace Name Mixin selector
      official b Llq;b()Laew;
      intermediary comp_1230 Lnet/minecraft/class_2444;comp_1230()Lnet/minecraft/class_2960;
      named id Lnet/minecraft/data/server/recipe/RecipeJsonProvider;id()Lnet/minecraft/util/Identifier;
    • serializer

      public RecipeSerializer<?> serializer()
      Specified by:
      serializer in interface RecipeJsonProvider
      Mappings:
      Namespace Name Mixin selector
      official c Llq;c()Lcmm;
      intermediary comp_1231 Lnet/minecraft/class_2444;comp_1231()Lnet/minecraft/class_1865;
      named serializer Lnet/minecraft/data/server/recipe/RecipeJsonProvider;serializer()Lnet/minecraft/recipe/RecipeSerializer;
    • template

      public Ingredient template()
      Returns the value of the template record component.
      Returns:
      the value of the template record component
    • base

      public Ingredient base()
      Returns the value of the base record component.
      Returns:
      the value of the base record component
    • addition

      public Ingredient addition()
      Returns the value of the addition record component.
      Returns:
      the value of the addition record component
    • result

      public Item result()
      Returns the value of the result record component.
      Returns:
      the value of the result record component
    • advancement

      public AdvancementEntry advancement()
      Specified by:
      advancement in interface RecipeJsonProvider
      Mappings:
      Namespace Name Mixin selector
      official d Llq;d()Laf;
      intermediary comp_1235 Lnet/minecraft/class_2444;comp_1235()Lnet/minecraft/class_8779;
      named advancement Lnet/minecraft/data/server/recipe/RecipeJsonProvider;advancement()Lnet/minecraft/advancement/AdvancementEntry;