Record Class StructurePageElement
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.page.StructurePageElement
- 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<StructurePageElement> -
Constructor Summary
ConstructorsConstructorDescriptionStructurePageElement(List<net.ixdarklord.folios.internal.client.page.Showcase.Shown> structures, Optional<String> title, String text, int height, net.ixdarklord.folios.internal.client.page.Showcase.Selector selector) Creates an instance of aStructurePageElementrecord 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.intheight()Returns the value of theheightrecord component.lay(FoliosLayout 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.List<net.ixdarklord.folios.internal.client.page.Showcase.Shown> Returns the value of thestructuresrecord 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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.ixdarklord.folios.api.client.page.FoliosPageElement
items, objectives, spread
-
Field Details
-
CODEC
-
-
Constructor Details
-
StructurePageElement
public StructurePageElement(List<net.ixdarklord.folios.internal.client.page.Showcase.Shown> structures, Optional<String> title, String text, int height, net.ixdarklord.folios.internal.client.page.Showcase.Selector selector) Creates an instance of aStructurePageElementrecord class.- Parameters:
structures- the value for thestructuresrecord 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:FoliosPageElementSets the page out: one or more pages, each drawn on its own.- Specified by:
layin interfaceFoliosPageElement
-
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 '=='. -
structures
Returns the value of thestructuresrecord component.- Returns:
- the value of the
structuresrecord component
-
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
-
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
-