public class ScreenManager
extends java.lang.Object
修飾子とタイプ | クラスと説明 |
---|---|
static interface |
ScreenManager.IScreenFactory<T extends Container,U extends Screen & IHasContainer<T>> |
コンストラクタと説明 |
---|
ScreenManager() |
修飾子とタイプ | メソッドと説明 |
---|---|
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) |
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> type, ScreenManager.IScreenFactory<M,U> factory)
public static boolean isMissingScreen()