Java Code Examples for net.minecraftforge.common.DimensionManager#registerProviderType()

The following examples show how to use net.minecraftforge.common.DimensionManager#registerProviderType() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CommonProxy.java    From Gadomancy with GNU Lesser General Public License v3.0 6 votes vote down vote up
public void initalize() {
    NetworkRegistry.INSTANCE.registerGuiHandler(Gadomancy.instance, this);

    MinecraftForge.EVENT_BUS.register(EVENT_HANDLER_GOLEM);
    FMLCommonHandler.instance().bus().register(new EventHandlerNetwork());
    EventHandlerWorld worldEventHandler = new EventHandlerWorld();
    MinecraftForge.EVENT_BUS.register(worldEventHandler);
    FMLCommonHandler.instance().bus().register(worldEventHandler);
    MinecraftForge.EVENT_BUS.register(new EventHandlerEntity());

    RegisteredEnchantments.init();
    RegisteredRecipes.init();

    SyncDataHolder.initialize();
    ModSubstitutions.init();

    RegisteredEntities.init();

    DimensionManager.registerProviderType(ModConfig.dimOuterId, WorldProviderTCEldrich.class, true);
    DimensionManager.registerDimension(ModConfig.dimOuterId, ModConfig.dimOuterId);
}
 
Example 2
Source File: MoCreatures.java    From mocreaturesdev with GNU General Public License v3.0 5 votes vote down vote up
@Init
public void load(FMLInitializationEvent event)
{
    this.InitItems();
    this.AddNames();
    this.AddRecipes();
    this.AddEntities();
    proxy.registerRenderers();
    proxy.registerRenderInformation();
    TickRegistry.registerTickHandler(new MoCServerTickHandler(), Side.SERVER);
    
    DimensionManager.registerProviderType(WyvernLairDimensionID, WorldProviderWyvernEnd.class, false);
}
 
Example 3
Source File: DimensionRegistry.java    From mobycraft with Apache License 2.0 4 votes vote down vote up
public static void registerDimensions(){
	DimensionManager.registerProviderType(magicLandID, WorldProviderMagicLand.class, false);
	DimensionManager.registerDimension(magicLandID, magicLandID);
}