ScreenRegistry
instead.@Deprecated public interface ScreenProviderRegistry
Modifier and Type | Field and Description |
---|---|
static ScreenProviderRegistry |
INSTANCE
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
registerFactory(net.minecraft.util.Identifier identifier,
ContainerFactory<net.minecraft.client.gui.screen.ingame.HandledScreen> factory)
Deprecated.
Register a "packet -> ContainerScreen" factory.
|
<C extends net.minecraft.screen.ScreenHandler> |
registerFactory(net.minecraft.util.Identifier identifier,
ContainerScreenFactory<C> containerScreenFactory)
Deprecated.
Register a "Container -> ContainerScreen" factory.
|
static final ScreenProviderRegistry INSTANCE
<C extends net.minecraft.screen.ScreenHandler> void registerFactory(net.minecraft.util.Identifier identifier, ContainerScreenFactory<C> containerScreenFactory)
identifier
- a shared identifier, this identifier should also be used to register a container using ContainerProviderRegistry
containerScreenFactory
- the supplier that should be used to create the new guivoid registerFactory(net.minecraft.util.Identifier identifier, ContainerFactory<net.minecraft.client.gui.screen.ingame.HandledScreen> factory)
identifier
- a shared identifier, this identifier should also be used to register a container using ContainerProviderRegistry
factory
- the gui factory, this should return a new HandledScreen