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:
id
-type
-template
-base
-addition
-advancement
-advancementId
-
- All Implemented Interfaces:
RecipeJsonProvider
- Enclosing class:
SmithingTrimRecipeJsonBuilder
public static record SmithingTrimRecipeJsonBuilder.SmithingTrimRecipeJsonProvider(Identifier id, RecipeSerializer<?> type, Ingredient template, Ingredient base, Ingredient addition, Advancement.Builder advancement, Identifier advancementId)
extends Record
implements RecipeJsonProvider
- Mappings:
Namespace Name official lx$a
intermediary net/minecraft/class_8076$class_8077
named net/minecraft/data/server/recipe/SmithingTrimRecipeJsonBuilder$SmithingTrimRecipeJsonProvider
official a
intermediary comp_1230
named id
official b
intermediary comp_1231
named type
official c
intermediary comp_1232
named template
official d
intermediary comp_1233
named base
official e
intermediary comp_1234
named addition
official f
intermediary comp_1235
named advancement
official g
intermediary comp_1236
named advancementId
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Ingredient
The field for theaddition
record component.private final Advancement.Builder
The field for theadvancement
record component.private final Identifier
The field for theadvancementId
record component.private final Ingredient
The field for thebase
record component.private final Identifier
The field for theid
record component.private final Ingredient
The field for thetemplate
record component.private final RecipeSerializer<?>
The field for thetype
record component. -
Constructor Summary
ConstructorDescriptionSmithingTrimRecipeJsonProvider
(Identifier identifier, RecipeSerializer<?> recipeSerializer, Ingredient ingredient, Ingredient ingredient2, Ingredient ingredient3, Advancement.Builder builder, Identifier identifier2) -
Method Summary
Modifier and TypeMethodDescriptionaddition()
Returns the value of theaddition
record component.Returns the value of theadvancement
record component.Returns the value of theadvancementId
record component.base()
Returns the value of thebase
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.void
serialize
(JsonObject json) template()
Returns the value of thetemplate
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.data.server.recipe.RecipeJsonProvider
toJson
-
Field Details
-
id
The field for theid
record component. -
type
The field for thetype
record component. -
template
The field for thetemplate
record component. -
base
The field for thebase
record component. -
addition
The field for theaddition
record component. -
advancement
The field for theadvancement
record component. -
advancementId
The field for theadvancementId
record component.
-
-
Constructor Details
-
SmithingTrimRecipeJsonProvider
public SmithingTrimRecipeJsonProvider(Identifier identifier, RecipeSerializer<?> recipeSerializer, Ingredient ingredient, Ingredient ingredient2, Ingredient ingredient3, Advancement.Builder builder, Identifier identifier2)
-
-
Method Details
-
serialize
- Specified by:
serialize
in interfaceRecipeJsonProvider
- 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
- Specified by:
getRecipeId
in interfaceRecipeJsonProvider
- 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
- Specified by:
getSerializer
in interfaceRecipeJsonProvider
- 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
- Specified by:
toAdvancementJson
in interfaceRecipeJsonProvider
- 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
- Specified by:
getAdvancementId
in interfaceRecipeJsonProvider
- 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
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 theid
record component.- Returns:
- the value of the
id
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
template
Returns the value of thetemplate
record component.- Returns:
- the value of the
template
record component
-
base
Returns the value of thebase
record component.- Returns:
- the value of the
base
record component
-
addition
Returns the value of theaddition
record component.- Returns:
- the value of the
addition
record component
-
advancement
Returns the value of theadvancement
record component.- Returns:
- the value of the
advancement
record component
-
advancementId
Returns the value of theadvancementId
record component.- Returns:
- the value of the
advancementId
record component
-