java.lang.Object
meteordevelopment.meteorclient.systems.hud.HudBox
All Implemented Interfaces:
ISerializable<HudBox>

public class HudBox extends Object implements ISerializable<HudBox>
  • Field Details

    • xAnchor

      public XAnchor xAnchor
    • yAnchor

      public YAnchor yAnchor
    • x

      public int x
    • y

      public int y
  • Constructor Details

  • Method Details

    • setSize

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

      public void setPos(int x, int y)
    • setXAnchor

      public void setXAnchor(XAnchor anchor)
    • setYAnchor

      public void setYAnchor(YAnchor anchor)
    • updateAnchors

      public void updateAnchors()
    • move

      public void move(int deltaX, int deltaY)
    • getXAnchor

      public XAnchor getXAnchor(double x)
    • getYAnchor

      public YAnchor getYAnchor(double y)
    • getRenderX

      public int getRenderX()
    • getRenderY

      public int getRenderY()
    • alignX

      public double alignX(double selfWidth, double width, Alignment alignment)
    • toTag

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

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