Record Class CoverMarkers.Lettering
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.CoverMarkers.Lettering
- Enclosing class:
CoverMarkers
public static record CoverMarkers.Lettering(net.minecraft.network.chat.Component text, GuideBook.CoverText.Line line, float z, int lines, CoverMarkers.Kind kind)
extends Record
What is lettered where: the book's name, its subtitle, its summary (up to
lines lines), each its own colour.-
Constructor Summary
ConstructorsConstructorDescriptionLettering(net.minecraft.network.chat.Component text, GuideBook.CoverText.Line line, float z, int lines, CoverMarkers.Kind kind) Creates an instance of aLetteringrecord 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.kind()Returns the value of thekindrecord component.line()Returns the value of thelinerecord component.intlines()Returns the value of thelinesrecord component.net.minecraft.network.chat.Componenttext()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.floatz()Returns the value of thezrecord component.
-
Constructor Details
-
Lettering
public Lettering(net.minecraft.network.chat.Component text, GuideBook.CoverText.Line line, float z, int lines, CoverMarkers.Kind kind) Creates an instance of aLetteringrecord class.- Parameters:
text- the value for thetextrecord componentline- the value for thelinerecord componentz- the value for thezrecord componentlines- the value for thelinesrecord componentkind- the value for thekindrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
text
public net.minecraft.network.chat.Component text()Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
line
Returns the value of thelinerecord component.- Returns:
- the value of the
linerecord component
-
z
public float z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
lines
public int lines()Returns the value of thelinesrecord component.- Returns:
- the value of the
linesrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-