类 RegisterGuiOverlaysEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RegisterGuiOverlaysEvent
- 所有已实现的接口:
net.minecraftforge.fml.event.IModBusEvent
public class RegisterGuiOverlaysEvent
extends net.minecraftforge.eventbus.api.Event
implements net.minecraftforge.fml.event.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.
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器构造器说明RegisterGuiOverlaysEvent
(Map<ResourceLocation, IGuiOverlay> overlays, List<ResourceLocation> orderedOverlays) -
方法概要
修饰符和类型方法说明private void
register
(@NotNull RegisterGuiOverlaysEvent.Ordering ordering, @Nullable ResourceLocation other, @NotNull String id, @NotNull IGuiOverlay overlay) void
registerAbove
(@NotNull ResourceLocation other, @NotNull String id, @NotNull IGuiOverlay overlay) Registers an overlay that renders above another.void
registerAboveAll
(@NotNull String id, @NotNull IGuiOverlay overlay) Registers an overlay that renders above all others.void
registerBelow
(@NotNull ResourceLocation other, @NotNull String id, @NotNull IGuiOverlay overlay) Registers an overlay that renders below another.void
registerBelowAll
(@NotNull String id, @NotNull IGuiOverlay overlay) Registers an overlay that renders below all others.从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
overlays
-
orderedOverlays
-
-
构造器详细资料
-
RegisterGuiOverlaysEvent
@Internal public RegisterGuiOverlaysEvent(Map<ResourceLocation, IGuiOverlay> overlays, List<ResourceLocation> orderedOverlays)
-
-
方法详细资料
-
registerBelowAll
Registers an overlay that renders below all others.- 参数:
id
- A unique resource id for this overlayoverlay
- The overlay
-
registerBelow
public void registerBelow(@NotNull @NotNull ResourceLocation other, @NotNull @NotNull String id, @NotNull @NotNull IGuiOverlay overlay) Registers an overlay that renders below another.- 参数:
other
- The id of the overlay to render below. This must be an overlay you have already registered or avanilla overlay
. Do not use other mods' overlays.id
- A unique resource id for this overlayoverlay
- The overlay
-
registerAbove
public void registerAbove(@NotNull @NotNull ResourceLocation other, @NotNull @NotNull String id, @NotNull @NotNull IGuiOverlay overlay) Registers an overlay that renders above another.- 参数:
other
- The id of the overlay to render above. This must be an overlay you have already registered or avanilla overlay
. Do not use other mods' overlays.id
- A unique resource id for this overlayoverlay
- The overlay
-
registerAboveAll
Registers an overlay that renders above all others.- 参数:
id
- A unique resource id for this overlayoverlay
- The overlay
-
register
private void register(@NotNull @NotNull RegisterGuiOverlaysEvent.Ordering ordering, @Nullable @Nullable ResourceLocation other, @NotNull @NotNull String id, @NotNull @NotNull IGuiOverlay overlay)
-