Package net.minecraft.client.gui
Class ScreenManager
java.lang.Object
net.minecraft.client.gui.ScreenManager
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
ScreenManager.IScreenFactory<T extends Container,
U extends Screen & IHasContainer<T>> -
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.apache.logging.log4j.Logger
private static final Map<ContainerType<?>,
ScreenManager.IScreenFactory<?, ?>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Container>
voidcreate
(ContainerType<T> p_216909_0_, Minecraft p_216909_1_, int p_216909_2_, ITextComponent p_216909_3_) private static <T extends Container>
ScreenManager.IScreenFactory<T,?> getConstructor
(ContainerType<T> p_216912_0_) static <T extends Container>
Optional<ScreenManager.IScreenFactory<T,?>> getScreenFactory
(ContainerType<T> p_216909_0_, Minecraft p_216909_1_, int p_216909_2_, ITextComponent p_216909_3_) static <M extends Container,
U extends Screen & IHasContainer<M>>
voidregister
(ContainerType<? extends M> p_216911_0_, ScreenManager.IScreenFactory<M, U> p_216911_1_) static boolean
selfTest()
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
SCREENS
-
-
Constructor Details
-
ScreenManager
public ScreenManager()
-
-
Method Details
-
create
public static <T extends Container> void create(@Nullable ContainerType<T> p_216909_0_, Minecraft p_216909_1_, int p_216909_2_, ITextComponent p_216909_3_) -
getScreenFactory
public static <T extends Container> Optional<ScreenManager.IScreenFactory<T,?>> getScreenFactory(@Nullable ContainerType<T> p_216909_0_, Minecraft p_216909_1_, int p_216909_2_, ITextComponent p_216909_3_) -
getConstructor
@Nullable private static <T extends Container> ScreenManager.IScreenFactory<T,?> getConstructor(ContainerType<T> p_216912_0_) -
register
public static <M extends Container,U extends Screen & IHasContainer<M>> void register(ContainerType<? extends M> p_216911_0_, ScreenManager.IScreenFactory<M, U> p_216911_1_) -
selfTest
public static boolean selfTest()
-