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 final org.slf4j.Logger
private static final 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 void
init()
static <M extends AbstractContainerMenu,
U extends Screen & MenuAccess<M>>
voidregister
(MenuType<? extends M> p_96207_, MenuScreens.ScreenConstructor<M, U> p_96208_) Deprecated.static boolean
selfTest()
-
Field Details
-
LOGGER
private static final org.slf4j.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
@Deprecated public static <M extends AbstractContainerMenu,U extends Screen & MenuAccess<M>> void register(MenuType<? extends M> p_96207_, MenuScreens.ScreenConstructor<M, U> p_96208_) Deprecated.UseRegisterMenuScreensEvent
to register menu screens + TODO 1.20.5: remove AT related to this -
init
@Internal public static void init() -
selfTest
public static boolean selfTest()
-
RegisterMenuScreensEvent
to register menu screens + TODO 1.20.5: remove AT related to this