Package net.minecraft.client.gui.screens
Class MenuScreens
java.lang.Object
net.minecraft.client.gui.screens.MenuScreens
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
MenuScreens.ScreenConstructor<T extends AbstractContainerMenu,U extends Screen & MenuAccess<T>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.logging.log4j.Logger
private static Map<MenuType<?>,MenuScreens.ScreenConstructor<?,?>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends AbstractContainerMenu>
voidprivate static <T extends AbstractContainerMenu>
MenuScreens.ScreenConstructor<T,?>getConstructor(MenuType<T> p_96200_)
static <T extends AbstractContainerMenu>
Optional<MenuScreens.ScreenConstructor<T,?>>getScreenFactory(MenuType<T> p_96202_, Minecraft p_96203_, int p_96204_, Component p_96205_)
static <M extends AbstractContainerMenu, U extends Screen & MenuAccess<M>>
voidregister(MenuType<? extends M> p_96207_, MenuScreens.ScreenConstructor<M,U> p_96208_)
static boolean
selfTest()
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
SCREENS
-
-
Constructor Details
-
MenuScreens
public MenuScreens()
-
-
Method Details
-
create
public static <T extends AbstractContainerMenu> void create(@Nullable MenuType<T> p_96202_, Minecraft p_96203_, int p_96204_, Component p_96205_) -
getScreenFactory
public static <T extends AbstractContainerMenu> Optional<MenuScreens.ScreenConstructor<T,?>> getScreenFactory(@Nullable MenuType<T> p_96202_, Minecraft p_96203_, int p_96204_, Component p_96205_) -
getConstructor
@Nullable private static <T extends AbstractContainerMenu> MenuScreens.ScreenConstructor<T,?> getConstructor(MenuType<T> p_96200_) -
register
public static <M extends AbstractContainerMenu, U extends Screen & MenuAccess<M>> void register(MenuType<? extends M> p_96207_, MenuScreens.ScreenConstructor<M,U> p_96208_) -
selfTest
public static boolean selfTest()
-