Interface ContainerProviderRegistry


@Deprecated public interface ContainerProviderRegistry
Deprecated.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    openContainer(net.minecraft.util.Identifier identifier, net.minecraft.entity.player.PlayerEntity player, Consumer<net.minecraft.network.PacketByteBuf> writer)
    Deprecated.
    Open a modded container.
    void
    openContainer(net.minecraft.util.Identifier identifier, net.minecraft.server.network.ServerPlayerEntity player, Consumer<net.minecraft.network.PacketByteBuf> writer)
    Deprecated.
    Open a modded container.
    void
    registerFactory(net.minecraft.util.Identifier identifier, ContainerFactory<net.minecraft.screen.ScreenHandler> factory)
    Deprecated.
    Register a "packet buffer -> container" factory.
  • Field Details

  • Method Details

    • registerFactory

      void registerFactory(net.minecraft.util.Identifier identifier, ContainerFactory<net.minecraft.screen.ScreenHandler> factory)
      Deprecated.
      Register a "packet buffer -> container" factory. This is used both on the client and server side.
      Parameters:
      identifier - a shared identifier, this identifier should also be used to register a container using ScreenProviderRegistry
      factory - the ContainerFactory that should return a new ScreenHandler
    • openContainer

      void openContainer(net.minecraft.util.Identifier identifier, net.minecraft.server.network.ServerPlayerEntity player, Consumer<net.minecraft.network.PacketByteBuf> writer)
      Deprecated.
      Open a modded container.
      Parameters:
      identifier - the identifier that was used when registering the container
      player - the player that should open the container
      writer - a PacketByteBuf where data can be written to, this data is then accessible by the container factory when creating the container or the gui
    • openContainer

      void openContainer(net.minecraft.util.Identifier identifier, net.minecraft.entity.player.PlayerEntity player, Consumer<net.minecraft.network.PacketByteBuf> writer)
      Deprecated.
      Open a modded container. This should be called on the server side - it has no effect on the client side.
      Parameters:
      identifier - the identifier that was used when registering the container
      player - the player that should open the container
      writer - a PacketByteBuf where data can be written to, this data is then accessible by the container factory when creating the container or the gui