Package net.minecraft.data.server.recipe
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$aintermediary net/minecraft/class_8074$class_8075named net/minecraft/data/server/recipe/SmithingTransformRecipeJsonBuilder$SmithingTransformRecipeJsonProviderofficial aintermediary comp_1222named idofficial bintermediary comp_1223named typeofficial cintermediary comp_1224named templateofficial dintermediary comp_1225named baseofficial eintermediary comp_1226named additionofficial fintermediary comp_1227named resultofficial gintermediary comp_1228named advancementofficial hintermediary comp_1229named advancementId
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IngredientThe field for theadditionrecord component.private final Advancement.BuilderThe field for theadvancementrecord component.private final IdentifierThe field for theadvancementIdrecord component.private final IngredientThe field for thebaserecord component.private final IdentifierThe field for theidrecord component.private final ItemThe field for theresultrecord component.private final IngredientThe field for thetemplaterecord component.private final RecipeSerializer<?>The field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSmithingTransformRecipeJsonProvider(Identifier identifier, RecipeSerializer<?> recipeSerializer, Ingredient ingredient, Ingredient ingredient2, Ingredient ingredient3, Item item, Advancement.Builder builder, Identifier identifier2) -
Method Summary
Modifier and TypeMethodDescriptionaddition()Returns the value of theadditionrecord component.Returns the value of theadvancementrecord component.Returns the value of theadvancementIdrecord 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.id()Returns the value of theidrecord component.result()Returns the value of theresultrecord component.voidserialize(JsonObject json) template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.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
-
id
The field for theidrecord component. -
type
The field for thetyperecord component. -
template
The field for thetemplaterecord component. -
base
The field for thebaserecord component. -
addition
The field for theadditionrecord component. -
result
The field for theresultrecord component. -
advancement
The field for theadvancementrecord component. -
advancementId
The field for theadvancementIdrecord component.
-
-
Constructor Details
-
SmithingTransformRecipeJsonProvider
public SmithingTransformRecipeJsonProvider(Identifier identifier, RecipeSerializer<?> recipeSerializer, Ingredient ingredient, Ingredient ingredient2, Ingredient ingredient3, Item item, Advancement.Builder builder, Identifier identifier2)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceRecipeJsonProvider- Mappings:
Namespace Name Mixin selector official aLlo;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
-
getRecipeId
- Specified by:
getRecipeIdin interfaceRecipeJsonProvider- Mappings:
Namespace Name Mixin selector official bLlo;b()Lacq;intermediary method_10417Lnet/minecraft/class_2444;method_10417()Lnet/minecraft/class_2960;named getRecipeIdLnet/minecraft/data/server/recipe/RecipeJsonProvider;getRecipeId()Lnet/minecraft/util/Identifier;
-
getSerializer
- Specified by:
getSerializerin interfaceRecipeJsonProvider- Mappings:
Namespace Name Mixin selector official cLlo;c()Lcjc;intermediary method_17800Lnet/minecraft/class_2444;method_17800()Lnet/minecraft/class_1865;named getSerializerLnet/minecraft/data/server/recipe/RecipeJsonProvider;getSerializer()Lnet/minecraft/recipe/RecipeSerializer;
-
toAdvancementJson
- Specified by:
toAdvancementJsonin interfaceRecipeJsonProvider- Mappings:
Namespace Name Mixin selector official dLlo;d()Lcom/google/gson/JsonObject;intermediary method_10415Lnet/minecraft/class_2444;method_10415()Lcom/google/gson/JsonObject;named toAdvancementJsonLnet/minecraft/data/server/recipe/RecipeJsonProvider;toAdvancementJson()Lcom/google/gson/JsonObject;
-
getAdvancementId
- Specified by:
getAdvancementIdin interfaceRecipeJsonProvider- Mappings:
Namespace Name Mixin selector official eLlo;e()Lacq;intermediary method_10418Lnet/minecraft/class_2444;method_10418()Lnet/minecraft/class_2960;named getAdvancementIdLnet/minecraft/data/server/recipe/RecipeJsonProvider;getAdvancementId()Lnet/minecraft/util/Identifier;
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
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
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
advancement
Returns the value of theadvancementrecord component.- Returns:
- the value of the
advancementrecord component
-
advancementId
Returns the value of theadvancementIdrecord component.- Returns:
- the value of the
advancementIdrecord component
-