Record Class BuildPageElement
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.page.BuildPageElement
- 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<BuildPageElement> -
Constructor Summary
ConstructorsConstructorDescriptionBuildPageElement(List<net.ixdarklord.folios.internal.client.page.Showcase.Shown> builds, Optional<String> title, String text, int height, net.ixdarklord.folios.internal.client.page.Showcase.Selector selector) Creates an instance of aBuildPageElementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<net.ixdarklord.folios.internal.client.page.Showcase.Shown> builds()Returns the value of thebuildsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.lay(GuideLayout layout) Sets the page out: one or more pages, each drawn on its own.Words of the page a search should find it by.net.ixdarklord.folios.internal.client.page.Showcase.Selectorselector()Returns the value of theselectorrecord component.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
-
BuildPageElement
public BuildPageElement(List<net.ixdarklord.folios.internal.client.page.Showcase.Shown> builds, Optional<String> title, String text, int height, net.ixdarklord.folios.internal.client.page.Showcase.Selector selector) Creates an instance of aBuildPageElementrecord class.- Parameters:
builds- the value for thebuildsrecord componenttitle- the value for thetitlerecord componenttext- the value for thetextrecord componentheight- the value for theheightrecord componentselector- the value for theselectorrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
builds
Returns the value of thebuildsrecord component.- Returns:
- the value of the
buildsrecord component
-
title
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
selector
public net.ixdarklord.folios.internal.client.page.Showcase.Selector selector()Returns the value of theselectorrecord component.- Returns:
- the value of the
selectorrecord component
-