Search in sources :

Example 1 with Client

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);
}
Also used : Lifecycle(org.spongepowered.common.launch.Lifecycle) Client(org.spongepowered.api.Client)

Aggregations

Client (org.spongepowered.api.Client)1 Lifecycle (org.spongepowered.common.launch.Lifecycle)1