public class RenderScrollingText extends RenderScalingText
| Modifier and Type | Field and Description |
|---|---|
protected long |
lastTime |
protected float |
moveDifference |
protected int |
speedTime |
protected info.u_team.u_team_core.gui.elements.RenderScrollingText.State |
state |
protected float |
stepSize |
protected int |
waitTime |
protected int |
width |
color, fontRenderSupplier, scale, shadow, textSupplier| Constructor and Description |
|---|
RenderScrollingText(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) |
protected float |
getMovingX(float x) |
int |
getSpeedTime() |
float |
getStepSize() |
int |
getWaitTime() |
int |
getWidth() |
protected boolean |
hasSpeedTimePassed() |
protected boolean |
hasWaitTimePassed() |
void |
setSpeedTime(int speedtime) |
void |
setStepSize(float stepSize) |
void |
setWaitTime(int waittime) |
void |
setWidth(int width) |
protected void |
updatedText() |
getColor, getScale, getTextSupplier, getTextWidth, isShadow, renderFont, setColor, setScale, setShadow, setTextSupplierprotected int width
protected float stepSize
protected int speedTime
protected int waitTime
protected float moveDifference
protected long lastTime
protected info.u_team.u_team_core.gui.elements.RenderScrollingText.State state
public RenderScrollingText(java.util.function.Supplier<net.minecraft.client.gui.FontRenderer> fontRenderSupplier,
java.util.function.Supplier<java.lang.String> textSupplier)
public void setWidth(int width)
public int getWidth()
public void setStepSize(float stepSize)
public float getStepSize()
public void setSpeedTime(int speedtime)
public int getSpeedTime()
public void setWaitTime(int waittime)
public int getWaitTime()
protected void updatedText()
updatedText in class RenderScalingTextpublic void draw(float x,
float y)
draw in class RenderScalingTextprotected float getMovingX(float x)
protected boolean hasWaitTimePassed()
protected boolean hasSpeedTimePassed()