Package net.minecraft.data.server.recipe
Record Class SingleItemRecipeJsonBuilder.SingleItemRecipeJsonProvider
java.lang.Object
java.lang.Record
net.minecraft.data.server.recipe.SingleItemRecipeJsonBuilder.SingleItemRecipeJsonProvider
- Record Components:
recipeId-serializer-group-input-output-count-advancementBuilder-
- All Implemented Interfaces:
RecipeJsonProvider
- Enclosing class:
SingleItemRecipeJsonBuilder
public static record SingleItemRecipeJsonBuilder.SingleItemRecipeJsonProvider(Identifier recipeId, RecipeSerializer<?> serializer, String group, Ingredient input, Item output, int count, class_8779 advancementBuilder)
extends Record
implements RecipeJsonProvider
- Mappings:
Namespace Name official ly$aintermediary net/minecraft/class_3981$class_3982named net/minecraft/data/server/recipe/SingleItemRecipeJsonBuilder$SingleItemRecipeJsonProviderofficial aintermediary comp_1222named recipeIdofficial bintermediary comp_1223named serializerofficial cintermediary comp_1947named groupofficial dintermediary comp_1948named inputofficial eintermediary comp_1949named outputofficial fintermediary comp_1950named countofficial gintermediary comp_1946named advancementBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final class_8779The field for theadvancementBuilderrecord component.private final intThe field for thecountrecord component.private final StringThe field for thegrouprecord component.private final IngredientThe field for theinputrecord component.private final ItemThe field for theoutputrecord component.private final IdentifierThe field for therecipeIdrecord component.private final RecipeSerializer<?>The field for theserializerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSingleItemRecipeJsonProvider(Identifier recipeId, RecipeSerializer<?> serializer, String group, Ingredient input, Item output, int outputCount, class_8779 class_8779) -
Method Summary
Modifier and TypeMethodDescriptionintcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.output()Returns the value of theoutputrecord component.recipeId()voidserialize(JsonObject json) 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. -
group
The field for thegrouprecord component. -
input
The field for theinputrecord component. -
output
The field for theoutputrecord component. -
count
private final int countThe field for thecountrecord component. -
advancementBuilder
The field for theadvancementBuilderrecord component.
-
-
Constructor Details
-
SingleItemRecipeJsonProvider
public SingleItemRecipeJsonProvider(Identifier recipeId, RecipeSerializer<?> serializer, String group, Ingredient input, Item output, int outputCount, class_8779 class_8779) - Mappings:
Namespace Name Mixin selector official <init>Lly$a;<init>(Laeu;Lcmh;Ljava/lang/String;Lcmb;Lciv;ILaf;)Vintermediary <init>Lnet/minecraft/class_3981$class_3982;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_1865;Ljava/lang/String;Lnet/minecraft/class_1856;Lnet/minecraft/class_1792;ILnet/minecraft/class_8779;)Vnamed <init>Lnet/minecraft/data/server/recipe/SingleItemRecipeJsonBuilder$SingleItemRecipeJsonProvider;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/recipe/RecipeSerializer;Ljava/lang/String;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/item/Item;ILnet/minecraft/class_8779;)V
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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;
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
output
Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord 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;
-