Record Class RecipePageElement
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.page.RecipePageElement
- All Implemented Interfaces:
GuidePage
-
Nested Class Summary
Nested classes/interfaces inherited from interface GuidePage
GuidePage.Laid, GuidePage.Part, GuidePage.SpreadHalf -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<RecipePageElement> -
Constructor Summary
ConstructorsConstructorDescriptionRecipePageElement(List<net.minecraft.resources.Identifier> recipes, Optional<String> title, String text) Creates an instance of aRecipePageElementrecord 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.lay(GuideLayout layout) Sets the page out: one or more pages, each drawn on its own.List<net.minecraft.resources.Identifier> recipes()Returns the value of therecipesrecord component.Words of the page a search should find it by.text()Returns the value of thetextrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface GuidePage
items, objectives, spread
-
Field Details
-
CODEC
-
-
Constructor Details
-
RecipePageElement
public RecipePageElement(List<net.minecraft.resources.Identifier> recipes, Optional<String> title, String text) Creates an instance of aRecipePageElementrecord class.- Parameters:
recipes- the value for therecipesrecord componenttitle- the value for thetitlerecord componenttext- the value for thetextrecord component
-
-
Method Details
-
lay
Description copied from interface:GuidePageSets the page out: one or more pages, each drawn on its own. -
searchText
Description copied from interface:GuidePageWords of the page a search should find it by.- Specified by:
searchTextin interfaceGuidePage
-
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). -
recipes
Returns the value of therecipesrecord component.- Returns:
- the value of the
recipesrecord component
-
title
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-