Class MenuRegistryImpl
java.lang.Object
me.shedaniel.architectury.registry.forge.MenuRegistryImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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>>
voidregisterScreenFactory
(net.minecraft.world.inventory.MenuType<? extends H> type, me.shedaniel.architectury.registry.MenuRegistry.ScreenFactory<H, S> factory)
-
Constructor Details
-
MenuRegistryImpl
public MenuRegistryImpl()
-
-
Method Details
-
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)