public class ScreenManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ScreenManager.IScreenFactory<T extends Container,U extends Screen & IHasContainer<T>> |
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<ContainerType<?>,ScreenManager.IScreenFactory<?,?>> |
FACTORIES |
private static org.apache.logging.log4j.Logger |
LOG |
Constructor and Description |
---|
ScreenManager() |
Modifier and Type | Method and Description |
---|---|
private static <T extends Container> |
getFactory(ContainerType<T> type) |
static <T extends Container> |
getScreenFactory(ContainerType<T> type,
Minecraft mc,
int windowId,
ITextComponent title) |
static boolean |
isMissingScreen() |
static <T extends Container> |
openScreen(ContainerType<T> type,
Minecraft mc,
int windowId,
ITextComponent title) |
static <M extends Container,U extends Screen & IHasContainer<M>> |
registerFactory(ContainerType<? extends M> type,
ScreenManager.IScreenFactory<M,U> factory) |
private static final org.apache.logging.log4j.Logger LOG
private static final java.util.Map<ContainerType<?>,ScreenManager.IScreenFactory<?,?>> FACTORIES
public static <T extends Container> void openScreen(@Nullable ContainerType<T> type, Minecraft mc, int windowId, ITextComponent title)
public static <T extends Container> java.util.Optional<ScreenManager.IScreenFactory<T,?>> getScreenFactory(@Nullable ContainerType<T> type, Minecraft mc, int windowId, ITextComponent title)
@Nullable private static <T extends Container> ScreenManager.IScreenFactory<T,?> getFactory(ContainerType<T> type)
public static <M extends Container,U extends Screen & IHasContainer<M>> void registerFactory(ContainerType<? extends M> type, ScreenManager.IScreenFactory<M,U> factory)
public static boolean isMissingScreen()