Class ScreenHooksImpl

java.lang.Object
dev.architectury.hooks.client.screen.fabric.ScreenHooksImpl

@Environment(CLIENT) public class ScreenHooksImpl extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends net.minecraft.client.gui.components.Renderable>
    T
    addRenderableOnly(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>
    T
    addRenderableWidget(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>
    T
    addWidget(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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)