Record Class SmithingTransformRecipeJsonBuilder.SmithingTransformRecipeJsonProvider

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

public static record SmithingTransformRecipeJsonBuilder.SmithingTransformRecipeJsonProvider(Identifier id, RecipeSerializer<?> type, Ingredient template, Ingredient base, Ingredient addition, Item result, Advancement.Builder advancement, Identifier advancementId) extends Record implements RecipeJsonProvider
Mappings:
Namespace Name
official lw$a
intermediary net/minecraft/class_8074$class_8075
named net/minecraft/data/server/recipe/SmithingTransformRecipeJsonBuilder$SmithingTransformRecipeJsonProvider
official a
intermediary comp_1222
named id
official b
intermediary comp_1223
named type
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_1228
named advancement
official h
intermediary comp_1229
named advancementId
  • Field Details

  • Constructor Details

  • Method Details

    • serialize

      public void serialize(JsonObject json)
      Specified by:
      serialize in interface RecipeJsonProvider
      Mappings:
      Namespace Name Mixin selector
      official a Llo;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
    • getRecipeId

      public Identifier getRecipeId()
      Specified by:
      getRecipeId in interface RecipeJsonProvider
      Mappings:
      Namespace Name Mixin selector
      official b Llo;b()Lacq;
      intermediary method_10417 Lnet/minecraft/class_2444;method_10417()Lnet/minecraft/class_2960;
      named getRecipeId Lnet/minecraft/data/server/recipe/RecipeJsonProvider;getRecipeId()Lnet/minecraft/util/Identifier;
    • getSerializer

      public RecipeSerializer<?> getSerializer()
      Specified by:
      getSerializer in interface RecipeJsonProvider
      Mappings:
      Namespace Name Mixin selector
      official c Llo;c()Lcje;
      intermediary method_17800 Lnet/minecraft/class_2444;method_17800()Lnet/minecraft/class_1865;
      named getSerializer Lnet/minecraft/data/server/recipe/RecipeJsonProvider;getSerializer()Lnet/minecraft/recipe/RecipeSerializer;
    • toAdvancementJson

      @Nullable public @Nullable JsonObject toAdvancementJson()
      Specified by:
      toAdvancementJson in interface RecipeJsonProvider
      Mappings:
      Namespace Name Mixin selector
      official d Llo;d()Lcom/google/gson/JsonObject;
      intermediary method_10415 Lnet/minecraft/class_2444;method_10415()Lcom/google/gson/JsonObject;
      named toAdvancementJson Lnet/minecraft/data/server/recipe/RecipeJsonProvider;toAdvancementJson()Lcom/google/gson/JsonObject;
    • getAdvancementId

      @Nullable public @Nullable Identifier getAdvancementId()
      Specified by:
      getAdvancementId in interface RecipeJsonProvider
      Mappings:
      Namespace Name Mixin selector
      official e Llo;e()Lacq;
      intermediary method_10418 Lnet/minecraft/class_2444;method_10418()Lnet/minecraft/class_2960;
      named getAdvancementId Lnet/minecraft/data/server/recipe/RecipeJsonProvider;getAdvancementId()Lnet/minecraft/util/Identifier;
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • id

      public Identifier id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • type

      public RecipeSerializer<?> type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • 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 Advancement.Builder advancement()
      Returns the value of the advancement record component.
      Returns:
      the value of the advancement record component
    • advancementId

      public Identifier advancementId()
      Returns the value of the advancementId record component.
      Returns:
      the value of the advancementId record component