Package net.minecraft.client.gui
Class ScreenManager
- java.lang.Object
-
- net.minecraft.client.gui.ScreenManager
-
public class ScreenManager extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ScreenManager.IScreenFactory<T extends Container,U extends Screen & IHasContainer<T>>
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.logging.log4j.Logger
LOGGER
private static java.util.Map<ContainerType<?>,ScreenManager.IScreenFactory<?,?>>
SCREENS
-
Constructor Summary
Constructors Constructor Description ScreenManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <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>
java.util.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 Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
SCREENS
private static final java.util.Map<ContainerType<?>,ScreenManager.IScreenFactory<?,?>> SCREENS
-
-
Method Detail
-
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> java.util.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()
-
-