Interface ContainerProviderRegistry
Deprecated.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
openContainer
(Identifier identifier, PlayerEntity player, Consumer<PacketByteBuf> writer) Deprecated.Open a modded container.void
openContainer
(Identifier identifier, ServerPlayerEntity player, Consumer<PacketByteBuf> writer) Deprecated.Open a modded container.void
registerFactory
(Identifier identifier, ContainerFactory<ScreenHandler> factory) Deprecated.Register a "packet buffer -> container" factory.
-
Field Details
-
INSTANCE
Deprecated.
-
-
Method Details
-
registerFactory
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 usingScreenProviderRegistry
factory
- the ContainerFactory that should return a newScreenHandler
-
openContainer
void openContainer(Identifier identifier, ServerPlayerEntity player, Consumer<PacketByteBuf> writer) Deprecated.Open a modded container.- Parameters:
identifier
- the identifier that was used when registering the containerplayer
- the player that should open the containerwriter
- 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
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 containerplayer
- the player that should open the containerwriter
- a PacketByteBuf where data can be written to, this data is then accessible by the container factory when creating the container or the gui
-
ScreenHandlerRegistry
instead.