Package net.minecraftforge.client.event
Class RegisterGuiOverlaysEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RegisterGuiOverlaysEvent
- All Implemented Interfaces:
- IModBusEvent
public class RegisterGuiOverlaysEvent
extends net.minecraftforge.eventbus.api.Event
implements IModBusEvent
Allows users to register custom 
GUI overlays.
 This event is not cancellable, and does not have a result.
This event is fired on the mod-specific event bus, only on the logical client.
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final List<ResourceLocation>private final Map<ResourceLocation,IGuiOverlay> 
- 
Constructor SummaryConstructorsConstructorDescriptionRegisterGuiOverlaysEvent(Map<ResourceLocation, IGuiOverlay> overlays, List<ResourceLocation> orderedOverlays) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate voidregister(@NotNull RegisterGuiOverlaysEvent.Ordering ordering, @Nullable ResourceLocation other, @NotNull String id, @NotNull IGuiOverlay overlay) voidregisterAbove(@NotNull ResourceLocation other, @NotNull String id, @NotNull IGuiOverlay overlay) Registers an overlay that renders above another.voidregisterAboveAll(@NotNull String id, @NotNull IGuiOverlay overlay) Registers an overlay that renders above all others.voidregisterBelow(@NotNull ResourceLocation other, @NotNull String id, @NotNull IGuiOverlay overlay) Registers an overlay that renders below another.voidregisterBelowAll(@NotNull String id, @NotNull IGuiOverlay overlay) Registers an overlay that renders below all others.Methods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
overlays
- 
orderedOverlays
 
- 
- 
Constructor Details- 
RegisterGuiOverlaysEvent@Internal public RegisterGuiOverlaysEvent(Map<ResourceLocation, IGuiOverlay> overlays, List<ResourceLocation> orderedOverlays) 
 
- 
- 
Method Details- 
registerBelowAllRegisters an overlay that renders below all others.- Parameters:
- id- A unique resource id for this overlay
- overlay- The overlay
 
- 
registerBelowpublic void registerBelow(@NotNull @NotNull ResourceLocation other, @NotNull @NotNull String id, @NotNull @NotNull IGuiOverlay overlay) Registers an overlay that renders below another.- Parameters:
- other- The id of the overlay to render below. This must be an overlay you have already registered or a- vanilla overlay. Do not use other mods' overlays.
- id- A unique resource id for this overlay
- overlay- The overlay
 
- 
registerAbovepublic void registerAbove(@NotNull @NotNull ResourceLocation other, @NotNull @NotNull String id, @NotNull @NotNull IGuiOverlay overlay) Registers an overlay that renders above another.- Parameters:
- other- The id of the overlay to render above. This must be an overlay you have already registered or a- vanilla overlay. Do not use other mods' overlays.
- id- A unique resource id for this overlay
- overlay- The overlay
 
- 
registerAboveAllRegisters an overlay that renders above all others.- Parameters:
- id- A unique resource id for this overlay
- overlay- The overlay
 
- 
registerprivate void register(@NotNull @NotNull RegisterGuiOverlaysEvent.Ordering ordering, @Nullable @Nullable ResourceLocation other, @NotNull @NotNull String id, @NotNull @NotNull IGuiOverlay overlay) 
 
-