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$GroupEntryintermediary net/minecraft/class_10291$class_10292official dfo$anamed inputintermediary comp_3253official anamed recipeintermediary comp_3254official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IngredientThe field for theinputrecord component.private final CuttingRecipeDisplay<T> The field for thereciperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGroupEntry(Ingredient ingredient, CuttingRecipeDisplay<T> cuttingRecipeDisplay) -
Method Summary
Modifier 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
-
codec
public static <T extends Recipe<?>> PacketCodec<RegistryByteBuf,CuttingRecipeDisplay.GroupEntry<T>> codec()- Mappings:
Namespace Name Mixin selector named codecLnet/minecraft/recipe/display/CuttingRecipeDisplay$GroupEntry;codec()Lnet/minecraft/network/codec/PacketCodec;intermediary method_64709Lnet/minecraft/class_10291$class_10292;method_64709()Lnet/minecraft/class_9139;official aLdfo$a;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). -
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
recipe
Returns the value of thereciperecord component.- Returns:
- the value of the
reciperecord component
-