Klasse ScalableText
java.lang.Object
info.u_team.u_team_core.gui.elements.ScalableText
- Alle implementierten Schnittstellen:
Scalable,net.minecraft.client.gui.components.Renderable
- Bekannte direkte Unterklassen:
ScrollingText
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected RGBAprotected static final Consumer<ScalableText> protected final net.minecraft.client.gui.Fontprotected floatprotected booleanprotected Consumer<ScalableText> protected floatprotected float -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungScalableText(net.minecraft.client.gui.Font font, Supplier<String> textSupplier, float x, float y) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetColor()floatgetScale()floatfloatgetX()floatgetY()booleanisShadow()voidrender(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) protected voidrenderFont(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, float x, float y) voidvoidsetScale(float scale) voidsetShadow(boolean shadow) protected voidvoidsetTextChanged(Consumer<ScalableText> textChanged) voidsetTextSupplier(Supplier<String> textSupplier) voidsetX(float x) voidsetY(float y) protected void
-
Felddetails
-
EMPTY_TEXT_CHANGED
-
font
protected final net.minecraft.client.gui.Font font -
textSupplier
-
x
protected float x -
y
protected float y -
color
-
shadow
protected boolean shadow -
scale
protected float scale -
textChanged
-
-
Konstruktordetails
-
ScalableText
-
-
Methodendetails
-
setTextSupplier
-
getTextSupplier
-
getX
public float getX() -
setX
public void setX(float x) -
getY
public float getY() -
setY
public void setY(float y) -
getColor
-
setColor
-
isShadow
public boolean isShadow() -
setShadow
public void setShadow(boolean shadow) -
getScale
public float getScale() -
setScale
public void setScale(float scale) -
setTextChanged
-
getTextWidth
public float getTextWidth() -
setText
-
updatedText
protected void updatedText() -
render
public void render(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) - Angegeben von:
renderin Schnittstellenet.minecraft.client.gui.components.Renderable
-
renderFont
protected void renderFont(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, float x, float y)
-