Record Class QuestPage
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.page.QuestPage
- All Implemented Interfaces:
GuidePage
-
Nested Class Summary
Nested classes/interfaces inherited from interface GuidePage
GuidePage.Laid, GuidePage.Part, GuidePage.SpreadHalf -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbar(GuidePainter painter, int x, int y, int width, int height, float fill, int color) A bar of a given fill (0 to 1) in a colour, drawn as pixel art.final 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.Returns the value of theobjectivesrecord component.reward()Returns the value of therewardrecord 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.
-
Field Details
-
CODEC
-
-
Constructor Details
-
QuestPage
public QuestPage(List<GuideObjective> objectives, Optional<String> title, String text, Optional<String> reward) Creates an instance of aQuestPagerecord class.- Parameters:
objectives- the value for theobjectivesrecord componenttitle- the value for thetitlerecord componenttext- the value for thetextrecord componentreward- the value for therewardrecord component
-
-
Method Details
-
lay
Description copied from interface:GuidePageSets the page out: one or more pages, each drawn on its own. -
bar
public static void bar(GuidePainter painter, int x, int y, int width, int height, float fill, int color) A bar of a given fill (0 to 1) in a colour, drawn as pixel art. Four or more pixels tall: a dark rim round it with its corners clipped, a sunk track, the fill lit along its top and shaded along its foot, notched every few pixels like a gauge, with a bright cap at its leading edge. Thinner: a dashed line of the colour on its track. -
objectives
Returns the value of theobjectivesrecord component.- Specified by:
objectivesin interfaceGuidePage- Returns:
- the value of the
objectivesrecord component
-
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). -
title
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
reward
-