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:
id
-group
-category
-input
-result
-experience
-cookingTime
-advancement
-serializer
-
- All Implemented Interfaces:
RecipeJsonProvider
- Enclosing class:
CookingRecipeJsonBuilder
private static record CookingRecipeJsonBuilder.CookingRecipeJsonProvider(Identifier id, String group, CookingRecipeCategory category, Ingredient input, Item result, float experience, int cookingTime, AdvancementEntry advancement, RecipeSerializer<? extends AbstractCookingRecipe> serializer)
extends Record
implements RecipeJsonProvider
- Mappings:
Namespace Name official lx$a
intermediary net/minecraft/class_2454$class_2455
named net/minecraft/data/server/recipe/CookingRecipeJsonBuilder$CookingRecipeJsonProvider
official a
intermediary comp_1230
named id
official b
intermediary comp_1940
named group
official c
intermediary comp_1941
named category
official d
intermediary comp_1942
named input
official e
intermediary comp_1943
named result
official f
intermediary comp_1944
named experience
official g
intermediary comp_1945
named cookingTime
official h
intermediary comp_1235
named advancement
official i
intermediary comp_1231
named serializer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AdvancementEntry
The field for theadvancement
record component.private final CookingRecipeCategory
The field for thecategory
record component.private final int
The field for thecookingTime
record component.private final float
The field for theexperience
record component.private final String
The field for thegroup
record component.private final Identifier
The field for theid
record component.private final Ingredient
The field for theinput
record component.private final Item
The field for theresult
record component.private final RecipeSerializer<? extends AbstractCookingRecipe>
The field for theserializer
record component. -
Constructor Summary
ConstructorDescriptionCookingRecipeJsonProvider
(Identifier id, String group, CookingRecipeCategory category, Ingredient input, Item result, float experience, int cookingTime, AdvancementEntry advancement, RecipeSerializer<? extends AbstractCookingRecipe> serializer) Creates an instance of aCookingRecipeJsonProvider
record class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()
Returns the value of thecategory
record component.int
Returns the value of thecookingTime
record component.final boolean
Indicates whether some other object is "equal to" this one.float
Returns the value of theexperience
record component.group()
Returns the value of thegroup
record component.final int
hashCode()
Returns a hash code value for this object.id()
input()
Returns the value of theinput
record component.result()
Returns the value of theresult
record component.void
serialize
(com.google.gson.JsonObject json) RecipeSerializer<? extends AbstractCookingRecipe>
final String
toString()
Returns a string representation of this record class.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. -
group
The field for thegroup
record component. -
category
The field for thecategory
record component. -
input
The field for theinput
record component. -
result
The field for theresult
record component. -
experience
private final float experienceThe field for theexperience
record component. -
cookingTime
private final int cookingTimeThe field for thecookingTime
record component. -
advancement
The field for theadvancement
record component. -
serializer
The field for theserializer
record component.
-
-
Constructor Details
-
CookingRecipeJsonProvider
CookingRecipeJsonProvider(Identifier id, String group, CookingRecipeCategory category, Ingredient input, Item result, float experience, int cookingTime, AdvancementEntry advancement, RecipeSerializer<? extends AbstractCookingRecipe> serializer) Creates an instance of aCookingRecipeJsonProvider
record class.- Parameters:
id
- the value for theid
record componentgroup
- the value for thegroup
record componentcategory
- the value for thecategory
record componentinput
- the value for theinput
record componentresult
- the value for theresult
record componentexperience
- the value for theexperience
record componentcookingTime
- the value for thecookingTime
record componentadvancement
- the value for theadvancement
record componentserializer
- the value for theserializer
record component
-
-
Method Details
-
serialize
public void serialize(com.google.gson.JsonObject json) - Specified by:
serialize
in interfaceRecipeJsonProvider
- Mappings:
Namespace Name Mixin selector official a
Llq;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
-
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 '=='. -
id
- Specified by:
id
in interfaceRecipeJsonProvider
- Mappings:
Namespace Name Mixin selector official b
Llq;b()Laew;
intermediary comp_1230
Lnet/minecraft/class_2444;comp_1230()Lnet/minecraft/class_2960;
named id
Lnet/minecraft/data/server/recipe/RecipeJsonProvider;id()Lnet/minecraft/util/Identifier;
-
group
Returns the value of thegroup
record component.- Returns:
- the value of the
group
record component
-
category
Returns the value of thecategory
record component.- Returns:
- the value of the
category
record component
-
input
Returns the value of theinput
record component.- Returns:
- the value of the
input
record component
-
result
Returns the value of theresult
record component.- Returns:
- the value of the
result
record component
-
experience
public float experience()Returns the value of theexperience
record component.- Returns:
- the value of the
experience
record component
-
cookingTime
public int cookingTime()Returns the value of thecookingTime
record component.- Returns:
- the value of the
cookingTime
record component
-
advancement
- Specified by:
advancement
in interfaceRecipeJsonProvider
- Mappings:
Namespace Name Mixin selector official d
Llq;d()Laf;
intermediary comp_1235
Lnet/minecraft/class_2444;comp_1235()Lnet/minecraft/class_8779;
named advancement
Lnet/minecraft/data/server/recipe/RecipeJsonProvider;advancement()Lnet/minecraft/advancement/AdvancementEntry;
-
serializer
- Specified by:
serializer
in interfaceRecipeJsonProvider
- Mappings:
Namespace Name Mixin selector official c
Llq;c()Lcmm;
intermediary comp_1231
Lnet/minecraft/class_2444;comp_1231()Lnet/minecraft/class_1865;
named serializer
Lnet/minecraft/data/server/recipe/RecipeJsonProvider;serializer()Lnet/minecraft/recipe/RecipeSerializer;
-