Record Class SpreadPage.MapLayout
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.page.SpreadPage.MapLayout
- Enclosing class:
SpreadPage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<net.minecraft.resources.Identifier> Returns the value of thebackgroundrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nodes()Returns the value of thenodesrecord component.paths()Returns the value of thepathsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MapLayout
public MapLayout(List<SpreadPage.Node> nodes, List<List<String>> paths, Optional<net.minecraft.resources.Identifier> background) Creates an instance of aMapLayoutrecord class.- Parameters:
nodes- the value for thenodesrecord componentpaths- the value for thepathsrecord componentbackground- the value for thebackgroundrecord component
-
-
Method Details
-
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). -
nodes
Returns the value of thenodesrecord component.- Returns:
- the value of the
nodesrecord component
-
paths
-
background
Returns the value of thebackgroundrecord component.- Returns:
- the value of the
backgroundrecord component
-