registerFactory

void registerFactory(Identifier identifier, ContainerFactory<ScreenHandler> factory)

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

Sources

jvm source
Link copied to clipboard