类 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
.
-
字段概要
字段修饰符和类型字段说明private static com.google.common.collect.ImmutableList<NamedGuiOverlay>
private static com.google.common.collect.ImmutableMap<ResourceLocation,
NamedGuiOverlay> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private 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.
-
字段详细资料
-
OVERLAYS
-
OVERLAYS_BY_NAME
private static com.google.common.collect.ImmutableMap<ResourceLocation,NamedGuiOverlay> OVERLAYS_BY_NAME
-
-
构造器详细资料
-
GuiOverlayManager
private GuiOverlayManager()
-
-
方法详细资料
-
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()
-