Interface HudLayerRegistrationCallback
public interface HudLayerRegistrationCallback
Callback for when hud layers are registered.
To register a layer, register a listener to this event and register your layers in the listener.
For common use cases, see LayeredDrawerWrapper.
For example, the following code registers a layer after IdentifiedLayer.MISC_OVERLAYS:
HudLayerRegistrationCallback.EVENT.register(layeredDrawer -> layeredDrawer.attachLayerAfter(IdentifiedLayer.MISC_OVERLAYS, Identifier.of("example", "example_layer_after_misc_overlays"), (context, tickCounter) -> {
// Your rendering code here
}));
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidregister(LayeredDrawerWrapper layeredDrawer) Called when registering hud layers.
-
Field Details
-
EVENT
-
-
Method Details
-
register
Called when registering hud layers.- Parameters:
layeredDrawer- the layered drawer to register layers to- See Also:
-