Class HudStatusBarHeightRegistryImpl
java.lang.Object
net.fabricmc.fabric.impl.client.rendering.hud.HudStatusBarHeightRegistryImpl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceReturns the sum of all registered provider heights that are considered "below" the position of the element associated with the givenHudElement. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddLeft(net.minecraft.resources.Identifier id, StatusBarHeightProvider heightProvider) static voidaddRight(net.minecraft.resources.Identifier id, StatusBarHeightProvider heightProvider) static intgetHeight(net.minecraft.resources.Identifier id) void
-
Field Details
-
LOGGER
public static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
HudStatusBarHeightRegistryImpl
public HudStatusBarHeightRegistryImpl()
-
-
Method Details
-
onInitializeClient
public void onInitializeClient() -
addLeft
public static void addLeft(net.minecraft.resources.Identifier id, StatusBarHeightProvider heightProvider) -
addRight
public static void addRight(net.minecraft.resources.Identifier id, StatusBarHeightProvider heightProvider) -
getHeight
public static int getHeight(net.minecraft.resources.Identifier id)
-