Class GuiOverlayManager
java.lang.Object
net.minecraftforge.client.gui.overlay.GuiOverlayManager
Manager for HUD overlays.
Provides a lookup by ID, as well as all registered overlays
.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static com.google.common.collect.ImmutableList<NamedGuiOverlay>
private static com.google.common.collect.ImmutableMap<ResourceLocation,
NamedGuiOverlay> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
static @Nullable NamedGuiOverlay
Finds the overlay corresponding to a given ID.static com.google.common.collect.ImmutableList<NamedGuiOverlay>
Retrieves an ordered list of all registered overlays.static void
init()
private static void
preRegisterVanillaOverlays
(HashMap<ResourceLocation, IGuiOverlay> overlays, ArrayList<ResourceLocation> orderedOverlays) Pre-registers vanilla overlays so they are available for ordering.
-
Field Details
-
OVERLAYS
-
OVERLAYS_BY_NAME
private static com.google.common.collect.ImmutableMap<ResourceLocation,NamedGuiOverlay> OVERLAYS_BY_NAME
-
-
Constructor Details
-
GuiOverlayManager
private GuiOverlayManager()
-
-
Method Details
-
getOverlays
Retrieves an ordered list of all registered overlays. -
findOverlay
Finds the overlay corresponding to a given ID. Do not call this beforeRegisterGuiOverlaysEvent
has finished firing. -
init
@Internal public static void init() -
preRegisterVanillaOverlays
private static void preRegisterVanillaOverlays(HashMap<ResourceLocation, IGuiOverlay> overlays, ArrayList<ResourceLocation> orderedOverlays) Pre-registers vanilla overlays so they are available for ordering. -
assignVanillaOverlayTypes
private static void assignVanillaOverlayTypes()
-