Record Class GuideText.Line
java.lang.Object
java.lang.Record
net.ixdarklord.folios.api.client.page.GuideText.Line
- Record Components:
first- whether it starts its block (a bullet's mark is drawn on it)marker- the bullet's mark or number, drawn atx - INDENT
- Enclosing class:
GuideText
public static record GuideText.Line(net.minecraft.util.FormattedCharSequence text, int x, int y, GuideText.Kind kind, boolean first, String marker)
extends Record
One line, at (x, y) from the text's top left.
-
Constructor Summary
ConstructorsConstructorDescriptionLine(net.minecraft.util.FormattedCharSequence text, int x, int y, GuideText.Kind kind, boolean first, String marker) Creates an instance of aLinerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanfirst()Returns the value of thefirstrecord component.final inthashCode()Returns a hash code value for this object.intheight()kind()Returns the value of thekindrecord component.marker()Returns the value of themarkerrecord component.net.minecraft.util.FormattedCharSequencetext()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.
-
Constructor Details
-
Line
public Line(net.minecraft.util.FormattedCharSequence text, int x, int y, GuideText.Kind kind, boolean first, String marker) Creates an instance of aLinerecord class.
-
-
Method Details
-
height
public int height() -
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.util.FormattedCharSequence text()Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
first
-
marker
-