Class HudWidget
java.lang.Object
com.render.api.HudWidget
Deprecated.
Base class for retained HUD widgets.
Its passive retained tree still contributes clip, mask, filter, and
backdrop nodes to the shared GUI compositor. Prefer ManagedHudLayout
for new movable HUD surfaces.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeRender(net.minecraft.client.DeltaTracker deltaTracker) Deprecated.Per-frame hook invoked before the widget is laid out and rendered.protected abstract voidbuild()Deprecated.Builds the widget's retained component tree.final voidDeprecated.Builds the widget once if it has not already been built.final intlayer()Deprecated.Returns the widget layer used for registry ordering.final HudWidgetlayer(int layer) Deprecated.Sets the cross-widget layer used by the HUD registry.final ContainerComponentroot()Deprecated.Returns the retained root container for this widget.voidtick()Deprecated.Per-tick hook invoked while the widget is registered.
-
Constructor Details
-
HudWidget
public HudWidget()Deprecated.
-
-
Method Details
-
root
Deprecated.Returns the retained root container for this widget.- Returns:
- root container
-
layer
Deprecated.Sets the cross-widget layer used by the HUD registry.- Parameters:
layer- widget layer- Returns:
- this widget
-
layer
public final int layer()Deprecated.Returns the widget layer used for registry ordering.- Returns:
- widget layer
-
tick
public void tick()Deprecated.Per-tick hook invoked while the widget is registered. -
beforeRender
public void beforeRender(net.minecraft.client.DeltaTracker deltaTracker) Deprecated.Per-frame hook invoked before the widget is laid out and rendered.- Parameters:
deltaTracker- frame timing helper
-
build
protected abstract void build()Deprecated.Builds the widget's retained component tree. -
ensureBuilt
public final void ensureBuilt()Deprecated.Builds the widget once if it has not already been built.
-