Package net.minecraft.data.server.recipe
Record Class SmithingTrimRecipeJsonBuilder.SmithingTrimRecipeJsonProvider
java.lang.Object
java.lang.Record
net.minecraft.data.server.recipe.SmithingTrimRecipeJsonBuilder.SmithingTrimRecipeJsonProvider
- Record Components:
recipeId-serializer-template-base-addition-advancementBuilder-
- All Implemented Interfaces:
RecipeJsonProvider
- Enclosing class:
SmithingTrimRecipeJsonBuilder
public static record SmithingTrimRecipeJsonBuilder.SmithingTrimRecipeJsonProvider(Identifier recipeId, RecipeSerializer<?> serializer, Ingredient template, Ingredient base, Ingredient addition, class_8779 advancementBuilder)
extends Record
implements RecipeJsonProvider
- Mappings:
Namespace Name official ma$aintermediary net/minecraft/class_8076$class_8077named net/minecraft/data/server/recipe/SmithingTrimRecipeJsonBuilder$SmithingTrimRecipeJsonProviderofficial aintermediary comp_1230named recipeIdofficial bintermediary comp_1231named serializerofficial cintermediary comp_1232named templateofficial dintermediary comp_1233named baseofficial eintermediary comp_1234named additionofficial fintermediary comp_1235named advancementBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IngredientThe field for theadditionrecord component.private final class_8779The field for theadvancementBuilderrecord component.private final IngredientThe field for thebaserecord component.private final IdentifierThe field for therecipeIdrecord component.private final RecipeSerializer<?>The field for theserializerrecord component.private final IngredientThe field for thetemplaterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSmithingTrimRecipeJsonProvider(Identifier identifier, RecipeSerializer<?> recipeSerializer, Ingredient ingredient, Ingredient ingredient2, Ingredient ingredient3, class_8779 class_8779) -
Method Summary
Modifier and TypeMethodDescriptionaddition()Returns the value of theadditionrecord component.base()Returns the value of thebaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.recipeId()voidserialize(JsonObject json) template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.data.server.recipe.RecipeJsonProvider
toJson
-
Field Details
-
recipeId
The field for therecipeIdrecord component. -
serializer
The field for theserializerrecord component. -
template
The field for thetemplaterecord component. -
base
The field for thebaserecord component. -
addition
The field for theadditionrecord component. -
advancementBuilder
The field for theadvancementBuilderrecord component.
-
-
Constructor Details
-
SmithingTrimRecipeJsonProvider
public SmithingTrimRecipeJsonProvider(Identifier identifier, RecipeSerializer<?> recipeSerializer, Ingredient ingredient, Ingredient ingredient2, Ingredient ingredient3, class_8779 class_8779)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceRecipeJsonProvider- Mappings:
Namespace Name Mixin selector official aLlq;a(Lcom/google/gson/JsonObject;)Vintermediary method_10416Lnet/minecraft/class_2444;method_10416(Lcom/google/gson/JsonObject;)Vnamed serializeLnet/minecraft/data/server/recipe/RecipeJsonProvider;serialize(Lcom/google/gson/JsonObject;)V
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
recipeId
- Specified by:
recipeIdin interfaceRecipeJsonProvider- Mappings:
Namespace Name Mixin selector official bLlq;b()Laeu;intermediary comp_1230Lnet/minecraft/class_2444;comp_1230()Lnet/minecraft/class_2960;named recipeIdLnet/minecraft/data/server/recipe/RecipeJsonProvider;recipeId()Lnet/minecraft/util/Identifier;
-
serializer
- Specified by:
serializerin interfaceRecipeJsonProvider- Mappings:
Namespace Name Mixin selector official cLlq;c()Lcmh;intermediary comp_1231Lnet/minecraft/class_2444;comp_1231()Lnet/minecraft/class_1865;named serializerLnet/minecraft/data/server/recipe/RecipeJsonProvider;serializer()Lnet/minecraft/recipe/RecipeSerializer;
-
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
base
Returns the value of thebaserecord component.- Returns:
- the value of the
baserecord component
-
addition
Returns the value of theadditionrecord component.- Returns:
- the value of the
additionrecord component
-
advancementBuilder
- Specified by:
advancementBuilderin interfaceRecipeJsonProvider- Mappings:
Namespace Name Mixin selector official dLlq;d()Laf;intermediary comp_1235Lnet/minecraft/class_2444;comp_1235()Lnet/minecraft/class_8779;named advancementBuilderLnet/minecraft/data/server/recipe/RecipeJsonProvider;advancementBuilder()Lnet/minecraft/class_8779;
-