Class Hud
- All Implemented Interfaces:
Iterable<HudElement>, ISerializable<Hud>
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanstatic final HudGroupfinal Map<String, HudElementInfo<?>> final Setting<List<SettingColor>> Fields inherited from class System
isFirstInit -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(@NonNull HudElementInfo.Preset preset, int x, int y, XAnchor xAnchor, YAnchor yAnchor) voidadd(HudElementInfo<?>.@NonNull Preset preset, int x, int y) voidadd(HudElementInfo<?> info, int x, int y) voidadd(HudElementInfo<?> info, int x, int y, XAnchor xAnchor, YAnchor yAnchor) voidclear()fromTag(net.minecraft.nbt.CompoundTag tag) static Hudget()doublebooleanvoidinit()@NonNull Iterator<HudElement> iterator()voidregister(HudElementInfo<?> info) voidnet.minecraft.nbt.CompoundTagtoTag()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
GROUP
-
active
public boolean active -
settings
-
infos
-
textColors
-
border
-
snappingRange
-
-
Constructor Details
-
Hud
public Hud()
-
-
Method Details
-
get
-
init
-
register
-
add
-
add
-
add
public void add(@NonNull HudElementInfo.Preset preset, int x, int y, XAnchor xAnchor, YAnchor yAnchor) -
add
-
clear
public void clear() -
resetToDefaultElements
public void resetToDefaultElements() -
hasCustomFont
public boolean hasCustomFont() -
getTextScale
public double getTextScale() -
iterator
- Specified by:
iteratorin interfaceIterable<HudElement>
-
toTag
-
fromTag
-