Package net.minecraft.recipe
Record Class ServerRecipeManager.ServerRecipe
java.lang.Object
java.lang.Record
net.minecraft.recipe.ServerRecipeManager.ServerRecipe
- Record Components:
display
-parent
-
- Enclosing class:
ServerRecipeManager
public static record ServerRecipeManager.ServerRecipe(RecipeDisplayEntry display, RecipeEntry<?> parent)
extends Record
- Mappings:
Namespace Name named net/minecraft/recipe/ServerRecipeManager$ServerRecipe
intermediary net/minecraft/class_1863$class_10288
official dck$d
named display
intermediary comp_3249
official a
named parent
intermediary comp_3250
official b
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RecipeDisplayEntry
The field for thedisplay
record component.private final RecipeEntry
<?> The field for theparent
record component. -
Constructor Summary
ConstructorDescriptionServerRecipe
(RecipeDisplayEntry recipeDisplayEntry, RecipeEntry<?> recipeEntry) -
Method Summary
Modifier and TypeMethodDescriptiondisplay()
Returns the value of thedisplay
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.RecipeEntry
<?> parent()
Returns the value of theparent
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
ServerRecipe
-
-
Method Details
-
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)
. -
display
Returns the value of thedisplay
record component.- Returns:
- the value of the
display
record component
-
parent
Returns the value of theparent
record component.- Returns:
- the value of the
parent
record component
-