Interface ScreenProviderRegistry
Deprecated.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescription<C extends ScreenHandler>
voidregisterFactory
(Identifier identifier, ContainerScreenFactory<C> containerScreenFactory) Deprecated.Register a "Container -> ContainerScreen" factory.void
registerFactory
(Identifier identifier, ContainerFactory<HandledScreen> factory) Deprecated.Register a "packet -> ContainerScreen" factory.
-
Field Details
-
INSTANCE
Deprecated.
-
-
Method Details
-
registerFactory
<C extends ScreenHandler> void registerFactory(Identifier identifier, ContainerScreenFactory<C> containerScreenFactory) Deprecated.Register a "Container -> ContainerScreen" factory. This is used only on the client side.- Parameters:
identifier
- a shared identifier, this identifier should also be used to register a container usingContainerProviderRegistry
containerScreenFactory
- the supplier that should be used to create the new gui
-
registerFactory
Deprecated.Register a "packet -> ContainerScreen" factory. This is used only on the client side, and allows you to override the default behaviour of re-using the existing "packet -> Container" logic.- Parameters:
identifier
- a shared identifier, this identifier should also be used to register a container usingContainerProviderRegistry
factory
- the gui factory, this should return a newHandledScreen
-
ScreenRegistry
instead.