Package net.minecraft.data.server.recipe
Record Class CookingRecipeJsonBuilder.CookingRecipeJsonProvider
java.lang.Object
java.lang.Record
net.minecraft.data.server.recipe.CookingRecipeJsonBuilder.CookingRecipeJsonProvider
- Record Components:
recipeId-group-category-input-result-experience-cookingTime-advancementBuilder-serializer-
- All Implemented Interfaces:
RecipeJsonProvider
- Enclosing class:
CookingRecipeJsonBuilder
private static record CookingRecipeJsonBuilder.CookingRecipeJsonProvider(Identifier recipeId, String group, CookingRecipeCategory category, Ingredient input, Item result, float experience, int cookingTime, class_8779 advancementBuilder, RecipeSerializer<? extends AbstractCookingRecipe> serializer)
extends Record
implements RecipeJsonProvider
- Mappings:
Namespace Name official lx$aintermediary net/minecraft/class_2454$class_2455named net/minecraft/data/server/recipe/CookingRecipeJsonBuilder$CookingRecipeJsonProviderofficial aintermediary comp_1222named recipeIdofficial bintermediary comp_1940named groupofficial cintermediary comp_1941named categoryofficial dintermediary comp_1942named inputofficial eintermediary comp_1943named resultofficial fintermediary comp_1944named experienceofficial gintermediary comp_1945named cookingTimeofficial hintermediary comp_1946named advancementBuilderofficial iintermediary comp_1223named serializer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final class_8779The field for theadvancementBuilderrecord component.private final CookingRecipeCategoryThe field for thecategoryrecord component.private final intThe field for thecookingTimerecord component.private final floatThe field for theexperiencerecord component.private final StringThe field for thegrouprecord component.private final IngredientThe field for theinputrecord component.private final IdentifierThe field for therecipeIdrecord component.private final ItemThe field for theresultrecord component.private final RecipeSerializer<? extends AbstractCookingRecipe>The field for theserializerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCookingRecipeJsonProvider(Identifier recipeId, String group, CookingRecipeCategory category, Ingredient input, Item result, float experience, int cookingTime, class_8779 class_8779, RecipeSerializer<? extends AbstractCookingRecipe> recipeSerializer) -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.intReturns the value of thecookingTimerecord component.final booleanIndicates whether some other object is "equal to" this one.floatReturns the value of theexperiencerecord component.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.recipeId()result()Returns the value of theresultrecord component.voidserialize(JsonObject json) RecipeSerializer<? extends AbstractCookingRecipe>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. -
group
The field for thegrouprecord component. -
category
The field for thecategoryrecord component. -
input
The field for theinputrecord component. -
result
The field for theresultrecord component. -
experience
private final float experienceThe field for theexperiencerecord component. -
cookingTime
private final int cookingTimeThe field for thecookingTimerecord component. -
advancementBuilder
The field for theadvancementBuilderrecord component. -
serializer
The field for theserializerrecord component.
-
-
Constructor Details
-
CookingRecipeJsonProvider
CookingRecipeJsonProvider(Identifier recipeId, String group, CookingRecipeCategory category, Ingredient input, Item result, float experience, int cookingTime, class_8779 class_8779, RecipeSerializer<? extends AbstractCookingRecipe> recipeSerializer) - Mappings:
Namespace Name Mixin selector official <init>Llx$a;<init>(Laeu;Ljava/lang/String;Lcls;Lcmb;Lciv;FILaf;Lcmh;)Vintermediary <init>Lnet/minecraft/class_2454$class_2455;<init>(Lnet/minecraft/class_2960;Ljava/lang/String;Lnet/minecraft/class_7709;Lnet/minecraft/class_1856;Lnet/minecraft/class_1792;FILnet/minecraft/class_8779;Lnet/minecraft/class_1865;)Vnamed <init>Lnet/minecraft/data/server/recipe/CookingRecipeJsonBuilder$CookingRecipeJsonProvider;<init>(Lnet/minecraft/util/Identifier;Ljava/lang/String;Lnet/minecraft/recipe/book/CookingRecipeCategory;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/item/Item;FILnet/minecraft/class_8779;Lnet/minecraft/recipe/RecipeSerializer;)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;
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
experience
public float experience()Returns the value of theexperiencerecord component.- Returns:
- the value of the
experiencerecord component
-
cookingTime
public int cookingTime()Returns the value of thecookingTimerecord component.- Returns:
- the value of the
cookingTimerecord 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;
-
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;
-