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/CuttingRecipeDisplay- intermediary - net/minecraft/class_10291- official - dbs- named - optionDisplay- intermediary - comp_3251- official - a- named - recipe- intermediary - comp_3252- official - b
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final recordCuttingRecipeDisplay.GroupEntry<T extends Recipe<?>>static final recordCuttingRecipeDisplay.Grouping<T extends Recipe<?>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final SlotDisplayThe field for theoptionDisplayrecord component.private final Optional<RecipeEntry<T>> The field for thereciperecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionCuttingRecipeDisplay(SlotDisplay slotDisplay, Optional<RecipeEntry<T>> optional) 
- 
Method SummaryModifier 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- 
optionDisplayThe field for theoptionDisplayrecord component.
- 
recipeThe field for thereciperecord component.
 
- 
- 
Constructor Details- 
CuttingRecipeDisplay
 
- 
- 
Method Details- 
codec- Mappings:
- Namespace - Name - Mixin selector - named - codec- Lnet/minecraft/recipe/display/CuttingRecipeDisplay;codec()Lnet/minecraft/network/codec/PacketCodec;- intermediary - method_64707- Lnet/minecraft/class_10291;method_64707()Lnet/minecraft/class_9139;- official - a- Ldbs;a()Lyn;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
optionDisplayReturns the value of theoptionDisplayrecord component.- Returns:
- the value of the optionDisplayrecord component
 
- 
recipeReturns the value of thereciperecord component.- Returns:
- the value of the reciperecord component
 
 
-