Package net.minecraft.recipe.display
Record Class CuttingRecipeDisplay.GroupEntry<T extends Recipe<?>>
java.lang.Object
java.lang.Record
net.minecraft.recipe.display.CuttingRecipeDisplay.GroupEntry<T>
- Record Components:
- input-
- recipe-
- Enclosing class:
- CuttingRecipeDisplay<T extends Recipe<?>>
public static record CuttingRecipeDisplay.GroupEntry<T extends Recipe<?>>(Ingredient input, CuttingRecipeDisplay<T extends Recipe<?>> recipe)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/recipe/display/CuttingRecipeDisplay$GroupEntry- intermediary - net/minecraft/class_10291$class_10292- official - dbs$a- named - input- intermediary - comp_3253- official - a- named - recipe- intermediary - comp_3254- official - b
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final IngredientThe field for theinputrecord component.private final CuttingRecipeDisplay<T> The field for thereciperecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionGroupEntry(Ingredient ingredient, CuttingRecipeDisplay<T> cuttingRecipeDisplay) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T extends Recipe<?>>
 PacketCodec<RegistryByteBuf, CuttingRecipeDisplay.GroupEntry<T>> codec()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.recipe()Returns the value of thereciperecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details
- 
Constructor Details- 
GroupEntry
 
- 
- 
Method Details- 
codecpublic static <T extends Recipe<?>> PacketCodec<RegistryByteBuf,CuttingRecipeDisplay.GroupEntry<T>> codec()- Mappings:
- Namespace - Name - Mixin selector - named - codec- Lnet/minecraft/recipe/display/CuttingRecipeDisplay$GroupEntry;codec()Lnet/minecraft/network/codec/PacketCodec;- intermediary - method_64709- Lnet/minecraft/class_10291$class_10292;method_64709()Lnet/minecraft/class_9139;- official - a- Ldbs$a;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).
- 
inputReturns the value of theinputrecord component.- Returns:
- the value of the inputrecord component
 
- 
recipeReturns the value of thereciperecord component.- Returns:
- the value of the reciperecord component
 
 
-