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 Summary
FieldsModifier and TypeFieldDescriptionbooleanfinal HudBoxfinal HudElementInfo<?>final Settingsintint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublefromTag(net.minecraft.nbt.NbtCompound tag) intintgetWidth()intgetX()intgetY()booleanisActive()protected booleanvoidmove(int deltaX, int deltaY) voidvoidremove()voidrender(HudRenderer renderer) voidsetPos(int x, int y) voidsetSize(double width, double height) voidtick(HudRenderer renderer) voidtoggle()net.minecraft.nbt.NbtCompoundtoTag()voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface meteordevelopment.meteorclient.utils.other.Snapper.Element
getX2, getY2
-
Field Details
-
info
-
settings
-
box
-
autoAnchors
public boolean autoAnchors -
x
public int x -
y
public int y
-
-
Constructor Details
-
HudElement
-
-
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:
setPosin interfaceSnapper.Element
-
move
public void move(int deltaX, int deltaY) - Specified by:
movein interfaceSnapper.Element
-
updatePos
public void updatePos() -
alignX
-
getX
public int getX()- Specified by:
getXin interfaceSnapper.Element
-
getY
public int getY()- Specified by:
getYin interfaceSnapper.Element
-
getWidth
public int getWidth()- Specified by:
getWidthin interfaceSnapper.Element
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceSnapper.Element
-
isInEditor
protected boolean isInEditor() -
remove
public void remove() -
tick
-
render
-
onFontChanged
public void onFontChanged() -
toTag
public net.minecraft.nbt.NbtCompound toTag()- Specified by:
toTagin interfaceISerializable<HudElement>
-
fromTag
- Specified by:
fromTagin interfaceISerializable<HudElement>
-