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>> |
Constructor and Description |
---|
ScreenManager() |
Modifier and Type | Method and Description |
---|---|
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> p_216911_0_,
ScreenManager.IScreenFactory<M,U> p_216911_1_) |
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)
public static <M extends Container,U extends Screen & IHasContainer<M>> void registerFactory(ContainerType<? extends M> p_216911_0_, ScreenManager.IScreenFactory<M,U> p_216911_1_)
public static boolean isMissingScreen()