Record Class BossBarTextState
java.lang.Object
java.lang.Record
net.lcc.sollib.api.client.ui.bossbar.BossBarTextState
public record BossBarTextState(net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int color, boolean dropShadow, float scale)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBossBarTextState(net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int color, boolean dropShadow, float scale) Creates an instance of aBossBarTextStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.booleanReturns the value of thedropShadowrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.client.gui.Fontfont()Returns the value of thefontrecord component.net.minecraft.client.gui.GuiGraphicsReturns the value of theguiGraphicsrecord component.final inthashCode()Returns a hash code value for this object.floatscale()Returns the value of thescalerecord component.net.minecraft.network.chat.Componenttext()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.withColor(int newColor) withComponent(net.minecraft.network.chat.Component newText) withFont(net.minecraft.client.gui.Font newFont) withPosition(int newX, int newY) withScale(float newScale) withShadow(boolean newDropShadow) intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.
-
Constructor Details
-
BossBarTextState
public BossBarTextState(net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int color, boolean dropShadow, float scale) Creates an instance of aBossBarTextStaterecord class.- Parameters:
font- the value for thefontrecord componenttext- the value for thetextrecord componentguiGraphics- the value for theguiGraphicsrecord componentx- the value for thexrecord componenty- the value for theyrecord componentcolor- the value for thecolorrecord componentdropShadow- the value for thedropShadowrecord componentscale- the value for thescalerecord component
-
-
Method Details
-
withComponent
-
withPosition
-
withFont
-
withColor
-
withShadow
-
withScale
-
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 '=='. -
font
public net.minecraft.client.gui.Font font()Returns the value of thefontrecord component.- Returns:
- the value of the
fontrecord component
-
text
public net.minecraft.network.chat.Component text()Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
guiGraphics
public net.minecraft.client.gui.GuiGraphics guiGraphics()Returns the value of theguiGraphicsrecord component.- Returns:
- the value of the
guiGraphicsrecord 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
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
dropShadow
public boolean dropShadow()Returns the value of thedropShadowrecord component.- Returns:
- the value of the
dropShadowrecord component
-
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-