Interface ScreenProviderRegistry
Deprecated.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescription<C extends net.minecraft.screen.ScreenHandler>
voidregisterFactory(net.minecraft.util.Identifier identifier, ContainerScreenFactory<C> containerScreenFactory)
Deprecated.Register a "Container -> ContainerScreen" factory.void
registerFactory(net.minecraft.util.Identifier identifier, ContainerFactory<net.minecraft.client.gui.screen.ingame.HandledScreen> factory)
Deprecated.Register a "packet -> ContainerScreen" factory.
-
Field Details
-
INSTANCE
Deprecated.
-
-
Method Details
-
registerFactory
<C extends net.minecraft.screen.ScreenHandler> void registerFactory(net.minecraft.util.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
void registerFactory(net.minecraft.util.Identifier identifier, ContainerFactory<net.minecraft.client.gui.screen.ingame.HandledScreen> factory)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.