Record Class RecipeBookManager.RecipeDisplayResultInfo
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.RecipeBookManager.RecipeDisplayResultInfo
- Enclosing class:
RecipeBookManager
@Internal
public static record RecipeBookManager.RecipeDisplayResultInfo(RecipeDisplayResultTooltipExtractor tooltipExtractor, RecipeDisplayResultIdExtractor idExtractor)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RecipeDisplayResultIdExtractorThe field for theidExtractorrecord component.private final RecipeDisplayResultTooltipExtractorThe field for thetooltipExtractorrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRecipeDisplayResultInfo(RecipeDisplayResultTooltipExtractor tooltipExtractor, RecipeDisplayResultIdExtractor idExtractor) Creates an instance of aRecipeDisplayResultInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidExtractorrecord component.Returns the value of thetooltipExtractorrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
tooltipExtractor
The field for thetooltipExtractorrecord component. -
idExtractor
The field for theidExtractorrecord component.
-
-
Constructor Details
-
RecipeDisplayResultInfo
public RecipeDisplayResultInfo(RecipeDisplayResultTooltipExtractor tooltipExtractor, RecipeDisplayResultIdExtractor idExtractor) Creates an instance of aRecipeDisplayResultInforecord class.- Parameters:
tooltipExtractor- the value for thetooltipExtractorrecord componentidExtractor- the value for theidExtractorrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
tooltipExtractor
Returns the value of thetooltipExtractorrecord component.- Returns:
- the value of the
tooltipExtractorrecord component
-
idExtractor
Returns the value of theidExtractorrecord component.- Returns:
- the value of the
idExtractorrecord component
-