public class RenderScalingText
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
color |
protected java.util.function.Supplier<net.minecraft.client.gui.FontRenderer> |
fontRenderSupplier |
protected float |
scale |
protected boolean |
shadow |
protected java.util.function.Supplier<java.lang.String> |
textSupplier |
Constructor and Description |
---|
RenderScalingText(java.util.function.Supplier<net.minecraft.client.gui.FontRenderer> fontRenderSupplier,
java.util.function.Supplier<java.lang.String> textSupplier) |
Modifier and Type | Method and Description |
---|---|
void |
draw(float x,
float y) |
int |
getColor() |
float |
getScale() |
java.util.function.Supplier<java.lang.String> |
getTextSupplier() |
float |
getTextWidth() |
boolean |
isShadow() |
protected void |
renderFont(float x,
float y) |
void |
setColor(int color) |
void |
setScale(float scale) |
void |
setShadow(boolean shadow) |
void |
setTextSupplier(java.util.function.Supplier<java.lang.String> textSupplier) |
protected void |
updatedText() |
protected final java.util.function.Supplier<net.minecraft.client.gui.FontRenderer> fontRenderSupplier
protected java.util.function.Supplier<java.lang.String> textSupplier
protected int color
protected boolean shadow
protected float scale
public RenderScalingText(java.util.function.Supplier<net.minecraft.client.gui.FontRenderer> fontRenderSupplier, java.util.function.Supplier<java.lang.String> textSupplier)
public void setTextSupplier(java.util.function.Supplier<java.lang.String> textSupplier)
public java.util.function.Supplier<java.lang.String> getTextSupplier()
public void setColor(int color)
public int getColor()
public void setShadow(boolean shadow)
public boolean isShadow()
public void setScale(float scale)
public float getScale()
public float getTextWidth()
protected void updatedText()
public void draw(float x, float y)
protected void renderFont(float x, float y)