Search in sources :

Example 1 with CommandChangeLog

use of stevekung.mods.moreplanets.client.command.CommandChangeLog in project MorePlanets by SteveKunG.

the class MorePlanetsCore method init.

@EventHandler
public void init(FMLInitializationEvent event) {
    MPTileEntities.init();
    MPOreDictionary.init();
    MPPlanets.register();
    GalacticraftCore.packetPipeline.addDiscriminator(ConfigManagerMP.idNetworkHandler, PacketSimpleMP.class);
    MorePlanetsCore.BLOCK_TAB.setDisplayItemStack(new ItemStack(MPBlocks.ROCKET_CRUSHER));
    MorePlanetsCore.ITEM_TAB.setDisplayItemStack(new ItemStack(MPItems.SPACE_WARPER_CORE));
    MorePlanetsCore.PROXY.registerInitRendering();
    LootFunctionManager.registerFunction(new SmeltWithDataFunction.Serializer());
    for (BiomeGenBaseGC biome : MPBiomes.biomeList) {
        biome.registerTypes(biome);
    }
    if (CommonRegisterHelper.isClient()) {
        CommonRegisterHelper.postRegisteredSortBlock();
        CommonRegisterHelper.postRegisteredSortItem();
        CommonRegisterHelper.registerForgeEvent(new ClientEventHandler());
        ClientCommandHandler.instance.registerCommand(new CommandChangeLog());
    }
    CommonRegisterHelper.registerForgeEvent(new EntityEventHandler());
    CommonRegisterHelper.registerForgeEvent(new GeneralEventHandler());
    CommonRegisterHelper.registerForgeEvent(new WorldTickEventHandler());
    CommonRegisterHelper.registerForgeEvent(new MissingMappingHandler());
}
Also used : SmeltWithDataFunction(stevekung.mods.moreplanets.util.SmeltWithDataFunction) CommandChangeLog(stevekung.mods.moreplanets.client.command.CommandChangeLog) BiomeGenBaseGC(micdoodle8.mods.galacticraft.api.world.BiomeGenBaseGC) ItemStack(net.minecraft.item.ItemStack) EventHandler(net.minecraftforge.fml.common.Mod.EventHandler)

Aggregations

BiomeGenBaseGC (micdoodle8.mods.galacticraft.api.world.BiomeGenBaseGC)1 ItemStack (net.minecraft.item.ItemStack)1 EventHandler (net.minecraftforge.fml.common.Mod.EventHandler)1 CommandChangeLog (stevekung.mods.moreplanets.client.command.CommandChangeLog)1 SmeltWithDataFunction (stevekung.mods.moreplanets.util.SmeltWithDataFunction)1