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:
id
-serializer
-group
-input
-output
-count
-advancement
-
- All Implemented Interfaces:
RecipeJsonProvider
- Enclosing class:
SingleItemRecipeJsonBuilder
public static record SingleItemRecipeJsonBuilder.SingleItemRecipeJsonProvider(Identifier id, RecipeSerializer<?> serializer, String group, Ingredient input, Item output, int count, AdvancementEntry advancement)
extends Record
implements RecipeJsonProvider
- Mappings:
Namespace Name official ly$a
intermediary net/minecraft/class_3981$class_3982
named net/minecraft/data/server/recipe/SingleItemRecipeJsonBuilder$SingleItemRecipeJsonProvider
official a
intermediary comp_1230
named id
official b
intermediary comp_1231
named serializer
official c
intermediary comp_1947
named group
official d
intermediary comp_1948
named input
official e
intermediary comp_1949
named output
official f
intermediary comp_1950
named count
official g
intermediary comp_1235
named advancement
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AdvancementEntry
The field for theadvancement
record component.private final int
The field for thecount
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 theoutput
record component.private final RecipeSerializer<?>
The field for theserializer
record component. -
Constructor Summary
ConstructorDescriptionSingleItemRecipeJsonProvider
(Identifier id, RecipeSerializer<?> serializer, String group, Ingredient input, Item output, int outputCount, AdvancementEntry advancement) -
Method Summary
Modifier and TypeMethodDescriptionint
count()
Returns the value of thecount
record component.final boolean
Indicates whether some other object is "equal to" this one.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.output()
Returns the value of theoutput
record component.void
serialize
(com.google.gson.JsonObject json) 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. -
serializer
The field for theserializer
record component. -
group
The field for thegroup
record component. -
input
The field for theinput
record component. -
output
The field for theoutput
record component. -
count
private final int countThe field for thecount
record component. -
advancement
The field for theadvancement
record component.
-
-
Constructor Details
-
SingleItemRecipeJsonProvider
public SingleItemRecipeJsonProvider(Identifier id, RecipeSerializer<?> serializer, String group, Ingredient input, Item output, int outputCount, AdvancementEntry advancement) - Mappings:
Namespace Name Mixin selector official <init>
Lly$a;<init>(Laew;Lcmm;Ljava/lang/String;Lcmg;Lcja;ILaf;)V
intermediary <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;)V
named <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/advancement/AdvancementEntry;)V
-
-
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;
-
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;
-
group
Returns the value of thegroup
record component.- Returns:
- the value of the
group
record component
-
input
Returns the value of theinput
record component.- Returns:
- the value of the
input
record component
-
output
Returns the value of theoutput
record component.- Returns:
- the value of the
output
record component
-
count
public int count()Returns the value of thecount
record component.- Returns:
- the value of the
count
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;
-