Class HudElement

java.lang.Object
meteordevelopment.meteorclient.systems.hud.HudElement
All Implemented Interfaces:
ISerializable<HudElement>, Snapper.Element
Direct Known Subclasses:
ActiveModulesHud, ArmorHud, CombatHud, CompassHud, HoleHud, InventoryHud, ItemHud, LagNotifierHud, ModuleInfosHud, PlayerModelHud, PlayerRadarHud, PotionTimersHud, TextHud

public abstract class HudElement extends Object implements Snapper.Element, ISerializable<HudElement>
  • Field Details

    • info

      public final HudElementInfo<?> info
    • settings

      public final Settings settings
    • box

      public final HudBox box
    • autoAnchors

      public boolean autoAnchors
    • x

      public int x
    • y

      public int y
  • Constructor Details

  • Method Details

    • isActive

      public boolean isActive()
    • toggle

      public void toggle()
    • setSize

      public void setSize(double width, double height)
    • setPos

      public void setPos(int x, int y)
      Specified by:
      setPos in interface Snapper.Element
    • move

      public void move(int deltaX, int deltaY)
      Specified by:
      move in interface Snapper.Element
    • updatePos

      public void updatePos()
    • alignX

      protected double alignX(double width, Alignment alignment)
    • getX

      public int getX()
      Specified by:
      getX in interface Snapper.Element
    • getY

      public int getY()
      Specified by:
      getY in interface Snapper.Element
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface Snapper.Element
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface Snapper.Element
    • isInEditor

      protected boolean isInEditor()
    • remove

      public void remove()
    • tick

      public void tick(HudRenderer renderer)
    • render

      public void render(HudRenderer renderer)
    • onFontChanged

      public void onFontChanged()
    • toTag

      public net.minecraft.nbt.NbtCompound toTag()
      Specified by:
      toTag in interface ISerializable<HudElement>
    • fromTag

      public HudElement fromTag(net.minecraft.nbt.NbtCompound tag)
      Specified by:
      fromTag in interface ISerializable<HudElement>