ContainerProviderImpl

public class ContainerProviderImpl implements ContainerProviderRegistry

Functions

createContainer
Link copied to clipboard
C createContainer<C extends ScreenHandler>(int syncId, Identifier identifier, PlayerEntity player, PacketByteBuf buf)
openContainer
Link copied to clipboard
void openContainer(Identifier identifier, PlayerEntity player, Consumer<PacketByteBuf> writer)
Open a modded container.
void openContainer(Identifier identifier, ServerPlayerEntity player, Consumer<PacketByteBuf> writer)
Open a modded container.
registerFactory
Link copied to clipboard
void registerFactory(Identifier identifier, ContainerFactory<ScreenHandler> factory)
Register a "packet buffer -> container" factory.

Properties

INSTANCE
Link copied to clipboard
public final static ContainerProviderImpl INSTANCE
Use the instance provided by ContainerProviderRegistry.
OPEN_CONTAINER
Link copied to clipboard
public final static Identifier OPEN_CONTAINER

Sources

jvm source
Link copied to clipboard