Record Class TextPage
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.page.TextPage
- All Implemented Interfaces:
GuidePage
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.ixdarklord.folios.api.client.page.GuidePage
GuidePage.Laid, GuidePage.Part, GuidePage.SpreadHalf -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionelements()Returns the value of theelementsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.items()The items this page is about: anywhere in the book, pressing one of them opens this page.lay(GuideLayout layout) Sets the page out: one or more pages, each drawn on its own.What the page asks the player to do, if it is a quest: an entry with objectives shows how far along they are on its row, and a toast says when they are all done.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.
-
Field Details
-
CODEC
-
-
Constructor Details
-
TextPage
Creates an instance of aTextPagerecord class.- Parameters:
title- the value for thetitlerecord componenttext- the value for thetextrecord componentelements- the value for theelementsrecord 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
-
items
Description copied from interface:GuidePageThe items this page is about: anywhere in the book, pressing one of them opens this page. -
objectives
Description copied from interface:GuidePageWhat the page asks the player to do, if it is a quest: an entry with objectives shows how far along they are on its row, and a toast says when they are all done.- Specified by:
objectivesin interfaceGuidePage
-
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). -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
elements
Returns the value of theelementsrecord component.- Returns:
- the value of the
elementsrecord component
-