Interface ScreenProviderRegistry


@Deprecated public interface ScreenProviderRegistry
Deprecated.
Use ScreenRegistry instead.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <C extends net.minecraft.screen.ScreenHandler>
    void
    registerFactory​(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

  • 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 using ContainerProviderRegistry
      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 using ContainerProviderRegistry
      factory - the gui factory, this should return a new HandledScreen