Record Class QuestPageElement
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.page.QuestPageElement
- All Implemented Interfaces:
FoliosPageElement
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.ixdarklord.folios.api.client.page.FoliosPageElement
FoliosPageElement.Laid, FoliosPageElement.Part, FoliosPageElement.SpreadHalf -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<QuestPageElement> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbar(FoliosPainter painter, int x, int y, int width, int height, float fill, int color) final booleanIndicates whether some other object is "equal to" this one.static voidgilded(FoliosPainter painter, int x, int y, int width, float fill) final inthashCode()Returns a hash code value for this object.booleaninOrder()Returns the value of theinOrderrecord component.lay(FoliosLayout layout) Sets the page out: one or more pages, each drawn on its own.locked()Returns the value of thelockedrecord component.Returns the value of theobjectivesrecord component.Optional<net.minecraft.resources.ResourceLocation> quest()Returns the value of thequestrecord component.reward()Returns the value of therewardrecord component.Words of the page a search should find it by.static voidstepped(FoliosPainter painter, int x, int y, int width, float fill, int steps, int color) 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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.ixdarklord.folios.api.client.page.FoliosPageElement
items, spread
-
Field Details
-
CODEC
-
-
Constructor Details
-
QuestPageElement
public QuestPageElement(List<FoliosObjective> objectives, Optional<String> title, String text, Optional<String> reward, boolean inOrder, Optional<net.minecraft.resources.ResourceLocation> quest, Optional<String> locked) Creates an instance of aQuestPageElementrecord class.- Parameters:
objectives- the value for theobjectivesrecord componenttitle- the value for thetitlerecord componenttext- the value for thetextrecord componentreward- the value for therewardrecord componentinOrder- the value for theinOrderrecord componentquest- the value for thequestrecord componentlocked- the value for thelockedrecord component
-
-
Method Details
-
objectives
Returns the value of theobjectivesrecord component.- Specified by:
objectivesin interfaceFoliosPageElement- Returns:
- the value of the
objectivesrecord component
-
lay
Description copied from interface:FoliosPageElementSets the page out: one or more pages, each drawn on its own.- Specified by:
layin interfaceFoliosPageElement
-
gilded
-
stepped
public static void stepped(FoliosPainter painter, int x, int y, int width, float fill, int steps, int color) -
bar
public static void bar(FoliosPainter painter, int x, int y, int width, int height, float fill, int color) -
searchText
Description copied from interface:FoliosPageElementWords of the page a search should find it by.- Specified by:
searchTextin interfaceFoliosPageElement
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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
-
reward
Returns the value of therewardrecord component.- Returns:
- the value of the
rewardrecord component
-
inOrder
public boolean inOrder()Returns the value of theinOrderrecord component.- Returns:
- the value of the
inOrderrecord component
-
quest
Returns the value of thequestrecord component.- Returns:
- the value of the
questrecord component
-
locked
Returns the value of thelockedrecord component.- Returns:
- the value of the
lockedrecord component
-