Class ScalableText
java.lang.Object
info.u_team.u_team_core.gui.elements.ScalableText
- All Implemented Interfaces:
Scalable
,net.minecraft.client.gui.components.Widget
- Direct Known Subclasses:
ScrollingText
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RGBA
protected static final Consumer<ScalableText>
protected final net.minecraft.client.gui.Font
protected float
protected boolean
protected Consumer<ScalableText>
protected float
protected float
-
Constructor Summary
ConstructorsConstructorDescriptionScalableText
(net.minecraft.client.gui.Font font, Supplier<String> textSupplier, float x, float y) -
Method Summary
Modifier and TypeMethodDescriptiongetColor()
float
getScale()
float
float
getX()
float
getY()
boolean
isShadow()
void
render
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) protected void
renderFont
(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.gui.Font font, float x, float y) void
void
setScale
(float scale) void
setShadow
(boolean shadow) protected void
void
setTextChanged
(Consumer<ScalableText> textChanged) void
setTextSupplier
(Supplier<String> textSupplier) void
setX
(float x) void
setY
(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 partialTicks) - Specified by:
render
in interfacenet.minecraft.client.gui.components.Widget
-
renderFont
protected void renderFont(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.gui.Font font, float x, float y)
-