use of org.spongepowered.api.Client in project SpongeCommon by SpongePowered.
the class SpongeForge method onClientSetup.
private void onClientSetup(final FMLClientSetupEvent event) {
final Client minecraft = (Client) event.getMinecraftSupplier().get();
final Lifecycle lifecycle = Launch.instance().lifecycle();
lifecycle.establishGlobalRegistries();
lifecycle.establishDataProviders();
lifecycle.callRegisterDataEvent();
lifecycle.establishClientRegistries(minecraft);
lifecycle.callStartingEngineEvent(minecraft);
}