Example usage for net.minecraftforge.fml DistExecutor runWhenOn

List of usage examples for net.minecraftforge.fml DistExecutor runWhenOn

Introduction

In this page you can find the example usage for net.minecraftforge.fml DistExecutor runWhenOn.

Prototype

public static void runWhenOn(Dist dist, Supplier<Runnable> toRun) 

Source Link

Usage

From source file:com.teambrmodding.assistedprogression.AssistedProgression.java

License:Creative Commons License

/**
 * Common setup, called after all registering
 * @param event Setup event//from w ww .  ja  va2  s .  c o m
 */
private void setup(final FMLCommonSetupEvent event) {
    proxy.init();
    DistExecutor.runWhenOn(Dist.CLIENT, () -> ScreenHelper::registerScreens);
    RecipeHelper.definePressurePlateValues();
}