Class MenuRegistryImpl

java.lang.Object
me.shedaniel.architectury.registry.forge.MenuRegistryImpl

public class MenuRegistryImpl extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends net.minecraft.world.inventory.AbstractContainerMenu>
    net.minecraft.world.inventory.MenuType<T>
    of(me.shedaniel.architectury.registry.MenuRegistry.SimpleMenuTypeFactory<T> factory)
     
    static <T extends net.minecraft.world.inventory.AbstractContainerMenu>
    net.minecraft.world.inventory.MenuType<T>
    ofExtended(me.shedaniel.architectury.registry.MenuRegistry.ExtendedMenuTypeFactory<T> factory)
     
    static void
    openExtendedMenu(net.minecraft.server.level.ServerPlayer player, me.shedaniel.architectury.registry.menu.ExtendedMenuProvider provider)
     
    static <H extends net.minecraft.world.inventory.AbstractContainerMenu, S extends net.minecraft.client.gui.screens.Screen & net.minecraft.client.gui.screens.inventory.MenuAccess<H>>
    void
    registerScreenFactory(net.minecraft.world.inventory.MenuType<? extends H> type, me.shedaniel.architectury.registry.MenuRegistry.ScreenFactory<H,S> factory)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MenuRegistryImpl

      public MenuRegistryImpl()
  • Method Details

    • openExtendedMenu

      public static void openExtendedMenu(net.minecraft.server.level.ServerPlayer player, me.shedaniel.architectury.registry.menu.ExtendedMenuProvider provider)
    • of

      public static <T extends net.minecraft.world.inventory.AbstractContainerMenu> net.minecraft.world.inventory.MenuType<T> of(me.shedaniel.architectury.registry.MenuRegistry.SimpleMenuTypeFactory<T> factory)
    • ofExtended

      public static <T extends net.minecraft.world.inventory.AbstractContainerMenu> net.minecraft.world.inventory.MenuType<T> ofExtended(me.shedaniel.architectury.registry.MenuRegistry.ExtendedMenuTypeFactory<T> factory)
    • registerScreenFactory

      public static <H extends net.minecraft.world.inventory.AbstractContainerMenu, S extends net.minecraft.client.gui.screens.Screen & net.minecraft.client.gui.screens.inventory.MenuAccess<H>> void registerScreenFactory(net.minecraft.world.inventory.MenuType<? extends H> type, me.shedaniel.architectury.registry.MenuRegistry.ScreenFactory<H,S> factory)