@FunctionalInterface public interface IScreenHandler<T extends net.minecraft.client.gui.screen.Screen> extends java.util.function.Function<T,IGuiProperties>
IGuiProperties
from a Screen
so JEI can draw next to it.
By default, JEI already handles this for all ContainerScreen
.
Register a IScreenHandler
with JEI by using IGuiHandlerRegistration.addGuiScreenHandler(Class, IScreenHandler)
Modifier and Type | Method and Description |
---|---|
IGuiProperties |
apply(T guiScreen) |
@Nullable IGuiProperties apply(T guiScreen)
apply
in interface java.util.function.Function<T extends net.minecraft.client.gui.screen.Screen,IGuiProperties>