Class ScreenHooksImpl
java.lang.Object
dev.architectury.hooks.client.screen.fabric.ScreenHooksImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends net.minecraft.client.gui.components.Renderable>
TaddRenderableOnly
(net.minecraft.client.gui.screens.Screen screen, T listener) static <T extends net.minecraft.client.gui.components.AbstractWidget & net.minecraft.client.gui.components.Renderable & net.minecraft.client.gui.narration.NarratableEntry>
TaddRenderableWidget
(net.minecraft.client.gui.screens.Screen screen, T widget) static <T extends net.minecraft.client.gui.components.events.GuiEventListener & net.minecraft.client.gui.narration.NarratableEntry>
TaddWidget
(net.minecraft.client.gui.screens.Screen screen, T listener) static List<net.minecraft.client.gui.narration.NarratableEntry>
getNarratables
(net.minecraft.client.gui.screens.Screen screen) static List<net.minecraft.client.gui.components.Renderable>
getRenderables
(net.minecraft.client.gui.screens.Screen screen)
-
Constructor Details
-
ScreenHooksImpl
public ScreenHooksImpl()
-
-
Method Details
-
getNarratables
public static List<net.minecraft.client.gui.narration.NarratableEntry> getNarratables(net.minecraft.client.gui.screens.Screen screen) -
getRenderables
public static List<net.minecraft.client.gui.components.Renderable> getRenderables(net.minecraft.client.gui.screens.Screen screen) -
addRenderableWidget
public static <T extends net.minecraft.client.gui.components.AbstractWidget & net.minecraft.client.gui.components.Renderable & net.minecraft.client.gui.narration.NarratableEntry> T addRenderableWidget(net.minecraft.client.gui.screens.Screen screen, T widget) -
addRenderableOnly
public static <T extends net.minecraft.client.gui.components.Renderable> T addRenderableOnly(net.minecraft.client.gui.screens.Screen screen, T listener) -
addWidget
public static <T extends net.minecraft.client.gui.components.events.GuiEventListener & net.minecraft.client.gui.narration.NarratableEntry> T addWidget(net.minecraft.client.gui.screens.Screen screen, T listener)
-