Class ScrollingText
java.lang.Object
info.u_team.u_team_core.gui.elements.ScalableText
info.u_team.u_team_core.gui.elements.ScrollingText
- All Implemented Interfaces:
Scalable
,net.minecraft.client.gui.components.Widget
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected long
protected float
protected int
protected info.u_team.u_team_core.gui.elements.ScrollingText.State
protected float
protected int
protected int
Fields inherited from class info.u_team.u_team_core.gui.elements.ScalableText
color, EMPTY_TEXT_CHANGED, font, scale, shadow, textChanged, textSupplier, x, y
-
Constructor Summary
ConstructorsConstructorDescriptionScrollingText
(net.minecraft.client.gui.Font font, Supplier<String> textSupplier, float x, float y) -
Method Summary
Modifier and TypeMethodDescriptionvoid
copyState
(ScrollingText renderer) protected float
getMovingX
(float x) int
float
int
int
getWidth()
protected boolean
protected boolean
void
render
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) void
setSpeedTime
(int speedtime) void
setStepSize
(float stepSize) void
setWaitTime
(int waittime) void
setWidth
(int width) protected void
Methods inherited from class info.u_team.u_team_core.gui.elements.ScalableText
getColor, getScale, getTextSupplier, getTextWidth, getX, getY, isShadow, renderFont, setColor, setScale, setShadow, setText, setTextChanged, setTextSupplier, setX, setY
-
Field Details
-
width
protected int width -
stepSize
protected float stepSize -
speedTime
protected int speedTime -
waitTime
protected int waitTime -
moveDifference
protected float moveDifference -
lastTime
protected long lastTime -
state
protected info.u_team.u_team_core.gui.elements.ScrollingText.State state
-
-
Constructor Details
-
ScrollingText
-
-
Method Details
-
getWidth
public int getWidth() -
setWidth
public void setWidth(int width) -
getStepSize
public float getStepSize() -
setStepSize
public void setStepSize(float stepSize) -
getSpeedTime
public int getSpeedTime() -
setSpeedTime
public void setSpeedTime(int speedtime) -
getWaitTime
public int getWaitTime() -
setWaitTime
public void setWaitTime(int waittime) -
copyState
-
updatedText
protected void updatedText()- Overrides:
updatedText
in classScalableText
-
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
- Overrides:
render
in classScalableText
-
getMovingX
protected float getMovingX(float x) -
hasWaitTimePassed
protected boolean hasWaitTimePassed() -
hasSpeedTimePassed
protected boolean hasSpeedTimePassed()
-