Klasse ScalableText

java.lang.Object
info.u_team.u_team_core.gui.elements.ScalableText
Alle implementierten Schnittstellen:
Scalable, net.minecraft.client.gui.components.Renderable
Bekannte direkte Unterklassen:
ScrollingText

public class ScalableText extends Object implements net.minecraft.client.gui.components.Renderable, Scalable
  • Felddetails

    • EMPTY_TEXT_CHANGED

      protected static final Consumer<ScalableText> EMPTY_TEXT_CHANGED
    • font

      protected final net.minecraft.client.gui.Font font
    • textSupplier

      protected Supplier<String> textSupplier
    • x

      protected float x
    • y

      protected float y
    • color

      protected RGBA color
    • shadow

      protected boolean shadow
    • scale

      protected float scale
    • textChanged

      protected Consumer<ScalableText> textChanged
  • Konstruktordetails

    • ScalableText

      public ScalableText(net.minecraft.client.gui.Font font, Supplier<String> textSupplier, float x, float y)
  • Methodendetails

    • setTextSupplier

      public void setTextSupplier(Supplier<String> textSupplier)
    • getTextSupplier

      public Supplier<String> getTextSupplier()
    • getX

      public float getX()
    • setX

      public void setX(float x)
    • getY

      public float getY()
    • setY

      public void setY(float y)
    • getColor

      public RGBA getColor()
    • setColor

      public void setColor(RGBA color)
    • isShadow

      public boolean isShadow()
    • setShadow

      public void setShadow(boolean shadow)
    • getScale

      public float getScale()
      Angegeben von:
      getScale in Schnittstelle Scalable
    • setScale

      public void setScale(float scale)
      Angegeben von:
      setScale in Schnittstelle Scalable
    • setTextChanged

      public void setTextChanged(Consumer<ScalableText> textChanged)
    • getTextWidth

      public float getTextWidth()
    • setText

      protected void setText(String newText)
    • updatedText

      protected void updatedText()
    • render

      public void render(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Angegeben von:
      render in Schnittstelle net.minecraft.client.gui.components.Renderable
    • renderFont

      protected void renderFont(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, float x, float y)