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

public class ScrollingText extends ScalableText
  • 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

      public ScrollingText(net.minecraft.client.gui.Font font, Supplier<String> textSupplier, float x, float y)
  • 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

      public void copyState(ScrollingText renderer)
    • updatedText

      protected void updatedText()
      Overrides:
      updatedText in class ScalableText
    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks)
      Specified by:
      render in interface net.minecraft.client.gui.components.Widget
      Overrides:
      render in class ScalableText
    • getMovingX

      protected float getMovingX(float x)
    • hasWaitTimePassed

      protected boolean hasWaitTimePassed()
    • hasSpeedTimePassed

      protected boolean hasSpeedTimePassed()