Package net.minecraft.recipe.display
Record Class CuttingRecipeDisplay<T extends Recipe<?>>
java.lang.Object
java.lang.Record
net.minecraft.recipe.display.CuttingRecipeDisplay<T>
- Record Components:
optionDisplay-recipe-
public record CuttingRecipeDisplay<T extends Recipe<?>>(SlotDisplay optionDisplay, Optional<RecipeEntry<T extends Recipe<?>>> recipe)
extends Record
- Mappings:
Namespace Name named net/minecraft/recipe/display/CuttingRecipeDisplayintermediary net/minecraft/class_10291official dfonamed optionDisplayintermediary comp_3251official anamed recipeintermediary comp_3252official b
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordCuttingRecipeDisplay.GroupEntry<T extends Recipe<?>>static final recordCuttingRecipeDisplay.Grouping<T extends Recipe<?>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SlotDisplayThe field for theoptionDisplayrecord component.private final Optional<RecipeEntry<T>> The field for thereciperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCuttingRecipeDisplay(SlotDisplay slotDisplay, Optional<RecipeEntry<T>> optional) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Recipe<?>>
PacketCodec<RegistryByteBuf, CuttingRecipeDisplay<T>> codec()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoptionDisplayrecord component.recipe()Returns the value of thereciperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
optionDisplay
The field for theoptionDisplayrecord component. -
recipe
The field for thereciperecord component.
-
-
Constructor Details
-
CuttingRecipeDisplay
-
-
Method Details
-
codec
- Mappings:
Namespace Name Mixin selector named codecLnet/minecraft/recipe/display/CuttingRecipeDisplay;codec()Lnet/minecraft/network/codec/PacketCodec;intermediary method_64707Lnet/minecraft/class_10291;method_64707()Lnet/minecraft/class_9139;official aLdfo;a()Lze;
-
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). -
optionDisplay
Returns the value of theoptionDisplayrecord component.- Returns:
- the value of the
optionDisplayrecord component
-
recipe
Returns the value of thereciperecord component.- Returns:
- the value of the
reciperecord component
-