Class ScalableText
java.lang.Object
info.u_team.u_team_core.gui.elements.ScalableText
- All Implemented Interfaces:
Scalable,net.minecraft.client.gui.components.Renderable
- Direct Known Subclasses:
ScrollingText
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RGBAprotected static final Consumer<ScalableText>protected final net.minecraft.client.gui.Fontprotected floatprotected booleanprotected Consumer<ScalableText>protected floatprotected float -
Constructor Summary
ConstructorsConstructorDescriptionScalableText(net.minecraft.client.gui.Font font, Supplier<String> textSupplier, float x, float y) -
Method Summary
Modifier and TypeMethodDescriptiongetColor()floatgetScale()floatfloatgetX()floatgetY()booleanisShadow()voidrender(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) protected voidrenderFont(com.mojang.blaze3d.vertex.PoseStack poseStack, 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
-
Field Details
-
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
-
-
Constructor Details
-
ScalableText
-
-
Method Details
-
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(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) - Specified by:
renderin interfacenet.minecraft.client.gui.components.Renderable
-
renderFont
protected void renderFont(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.gui.Font font, float x, float y)
-