Package net.minecraft.recipe
Record Class RecipeDisplayEntry
java.lang.Object
java.lang.Record
net.minecraft.recipe.RecipeDisplayEntry
- Record Components:
id
-display
-group
-category
-craftingRequirements
-
public record RecipeDisplayEntry(NetworkRecipeId id, RecipeDisplay display, OptionalInt group, RecipeBookCategory category, Optional<List<Ingredient>> craftingRequirements)
extends Record
A recipe that is synced to the clients. Note that this does not include
the recipe's ID; the recipe is instead referred to using
NetworkRecipeId
,
which is assigned at runtime.- Mappings:
Namespace Name named net/minecraft/recipe/RecipeDisplayEntry
intermediary net/minecraft/class_10297
official ddj
named id
intermediary comp_3262
official b
named display
intermediary comp_3263
official c
named group
intermediary comp_3264
official d
named category
intermediary comp_3265
official e
named craftingRequirements
intermediary comp_3266
official f
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RecipeBookCategory
The field for thecategory
record component.private final Optional
<List<Ingredient>> The field for thecraftingRequirements
record component.private final RecipeDisplay
The field for thedisplay
record component.private final OptionalInt
The field for thegroup
record component.private final NetworkRecipeId
The field for theid
record component.static final PacketCodec
<RegistryByteBuf, RecipeDisplayEntry> -
Constructor Summary
ConstructorDescriptionRecipeDisplayEntry
(NetworkRecipeId networkRecipeId, RecipeDisplay recipeDisplay, OptionalInt optionalInt, RecipeBookCategory recipeBookCategory, Optional<List<Ingredient>> optional) -
Method Summary
Modifier and TypeMethodDescriptioncategory()
Returns the value of thecategory
record component.Returns the value of thecraftingRequirements
record component.display()
Returns the value of thedisplay
record component.final boolean
Indicates whether some other object is "equal to" this one.getStacks
(ContextParameterMap context) group()
Returns the value of thegroup
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.boolean
isCraftable
(RecipeFinder finder) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
id
The field for theid
record component. -
display
The field for thedisplay
record component. -
group
The field for thegroup
record component. -
category
The field for thecategory
record component. -
craftingRequirements
The field for thecraftingRequirements
record component. -
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/recipe/RecipeDisplayEntry;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_54663
Lnet/minecraft/class_10297;field_54663:Lnet/minecraft/class_9139;
official a
Lddj;a:Lzt;
-
-
Constructor Details
-
RecipeDisplayEntry
public RecipeDisplayEntry(NetworkRecipeId networkRecipeId, RecipeDisplay recipeDisplay, OptionalInt optionalInt, RecipeBookCategory recipeBookCategory, Optional<List<Ingredient>> optional)
-
-
Method Details
-
getStacks
- Mappings:
Namespace Name Mixin selector named getStacks
Lnet/minecraft/recipe/RecipeDisplayEntry;getStacks(Lnet/minecraft/util/context/ContextParameterMap;)Ljava/util/List;
intermediary method_64730
Lnet/minecraft/class_10297;method_64730(Lnet/minecraft/class_10352;)Ljava/util/List;
official a
Lddj;a(Lbbp;)Ljava/util/List;
-
isCraftable
- Mappings:
Namespace Name Mixin selector named isCraftable
Lnet/minecraft/recipe/RecipeDisplayEntry;isCraftable(Lnet/minecraft/recipe/RecipeFinder;)Z
intermediary method_64729
Lnet/minecraft/class_10297;method_64729(Lnet/minecraft/class_9875;)Z
official a
Lddj;a(Lcqb;)Z
-
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
-
display
Returns the value of thedisplay
record component.- Returns:
- the value of the
display
record component
-
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
-
craftingRequirements
Returns the value of thecraftingRequirements
record component.- Returns:
- the value of the
craftingRequirements
record component
-