@Environment(value=CLIENT) public class HandledScreens extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
HandledScreens.Provider<T extends ScreenHandler,U extends Screen & ScreenHandlerProvider<T>> |
Modifier and Type | Field and Description |
---|---|
private static Logger |
LOGGER |
private static Map<ScreenHandlerType<?>,HandledScreens.Provider<?,?>> |
PROVIDERS |
Constructor and Description |
---|
HandledScreens() |
Modifier and Type | Method and Description |
---|---|
private static <T extends ScreenHandler> |
getProvider(ScreenHandlerType<T> type) |
static <T extends ScreenHandler> |
open(ScreenHandlerType<T> type,
MinecraftClient client,
int id,
Text title) |
private static <M extends ScreenHandler,U extends Screen & ScreenHandlerProvider<M>> |
register(ScreenHandlerType<? extends M> type,
HandledScreens.Provider<M,U> provider) |
static boolean |
validateScreens() |
private static final Logger LOGGER
private static final Map<ScreenHandlerType<?>,HandledScreens.Provider<?,?>> PROVIDERS
public static <T extends ScreenHandler> void open(@Nullable ScreenHandlerType<T> type, MinecraftClient client, int id, Text title)
@Nullable private static <T extends ScreenHandler> HandledScreens.Provider<T,?> getProvider(ScreenHandlerType<T> type)
private static <M extends ScreenHandler,U extends Screen & ScreenHandlerProvider<M>> void register(ScreenHandlerType<? extends M> type, HandledScreens.Provider<M,U> provider)
public static boolean validateScreens()