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.Renderable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected floatprotected intprotected info.u_team.u_team_core.gui.elements.ScrollingText.Stateprotected floatprotected intprotected intFields 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 TypeMethodDescriptionvoidcopyState(ScrollingText renderer) protected floatgetMovingX(float x) intfloatintintgetWidth()protected booleanprotected booleanvoidrender(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTick) voidsetSpeedTime(int speedtime) voidsetStepSize(float stepSize) voidsetWaitTime(int waittime) voidsetWidth(int width) protected voidMethods 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:
updatedTextin classScalableText
-
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- Overrides:
renderin classScalableText
-
getMovingX
protected float getMovingX(float x) -
hasWaitTimePassed
protected boolean hasWaitTimePassed() -
hasSpeedTimePassed
protected boolean hasSpeedTimePassed()
-