Search in sources :

Example 1 with ChestGen

use of uk.co.wehavecookies56.kk.common.world.ChestGen in project Kingdom-Keys-Re-Coded by Wehavecookies56.

the class CommonProxy method init.

public void init(FMLInitializationEvent event) {
    // Instance
    MinecraftForge.EVENT_BUS.register(KingdomKeys.instance);
    ModBiomes.init();
    // ModSounds.init();
    // LogHelper.info("Sounds loaded");
    // Update checker
    ModItems.init();
    // Register renders
    KingdomKeys.logger.info("Renders loaded");
    // Tile entity registry
    GameRegistry.registerTileEntity(TileEntitySynthesisTable.class, "synthesistable");
    GameRegistry.registerTileEntity(TileEntityKKChest.class, "kkchest");
    GameRegistry.registerTileEntity(TileEntityStationOfAwakening.class, "stationofawakening");
    GameRegistry.registerTileEntity(TileEntityPedestal.class, "kkpedestal");
    GameRegistry.registerTileEntity(TileEntityOrgPortal.class, "kkorgportal");
    KingdomKeys.logger.info("Tile entity loaded");
    // Proxy used as Gui handler
    NetworkRegistry.INSTANCE.registerGuiHandler(KingdomKeys.instance, new GuiHandler());
    EntityHelper.registerEntity("blastblox", EntityBlastBlox.class);
    EntityHelper.registerEntity("fire", EntityFire.class);
    EntityHelper.registerEntity("thunder", EntityThunder.class);
    EntityHelper.registerEntity("kkOrgPortalE", EntityOrgPortal.class);
    EntityHelper.registerEntity("kkFlyingHeart", EntityFlyingHeart.class);
    // Heartless registry
    EntityHelper.registerEntity(Strings.Shadow, EntityShadow.class, Color.BLACK.getRGB(), Color.YELLOW.getRGB());
    EntityHelper.registerEntity(Strings.MegaShadow, EntityMegaShadow.class, Color.BLACK.getRGB(), Color.GRAY.getRGB());
    EntityHelper.registerEntity(Strings.GigaShadow, EntityGigaShadow.class, Color.BLACK.getRGB(), Color.BLACK.getRGB());
    EntityHelper.registerEntity(Strings.Darkball, EntityDarkball.class, 0x020030, 0x492263);
    EntityHelper.registerEntity(Strings.RedNocturne, EntityRedNocturne.class, Color.RED.getRGB(), Color.PINK.getRGB());
    EntityHelper.registerEntity(Strings.BlueRhapsody, EntityBlueRhapsody.class, Color.BLUE.getRGB(), Color.CYAN.getRGB());
    EntityHelper.registerEntity(Strings.YellowOpera, EntityYellowOpera.class, Color.orange.getRGB(), Color.yellow.getRGB());
    EntityHelper.registerEntity(Strings.GreenRequiem, EntityGreenRequiem.class, Color.LIGHT_GRAY.getRGB(), Color.green.getRGB());
    EntityHelper.registerEntity(Strings.SilverRock, EntitySilverRock.class, Color.LIGHT_GRAY.getRGB(), Color.darkGray.getRGB());
    EntityHelper.registerEntity(Strings.CrimsonJazz, EntityCrimsonJazz.class, Color.black.getRGB(), Color.red.getRGB());
    EntityHelper.registerEntity(Strings.EmeraldBlues, EntityEmeraldBlues.class, Color.green.getRGB(), Color.blue.getRGB());
    EntityHelper.registerEntity(Strings.MinuteBomb, EntityMinuteBomb.class, 0x020030, 0x8B4513);
    EntityHelper.registerEntity(Strings.SkaterBomb, EntitySkaterBomb.class, 0x020030, 0xAAAAFF);
    EntityHelper.registerEntity(Strings.StormBomb, EntityStormBomb.class, 0x020030, Color.CYAN.getRGB());
    EntityHelper.registerEntity(Strings.Detonator, EntityDetonator.class, 0x020030, Color.RED.getRGB());
    EntityHelper.registerEntity(Strings.LargeBody, EntityLargeBody.class, 0x4d177c, 0x29014c);
    EntityHelper.registerEntity(Strings.Moogle, EntityMoogle.class, 0xDACAB0, 0xC50033);
    EntityHelper.registerEntity(Strings.GummiShip, EntityGummiShip.class, 0xFF0000, 0x6666AA);
    Spawnings.init();
    Lists.init();
    ModItemsRecipes.init();
    // Drive forms init
    ModDriveForms.init();
    KingdomKeys.logger.info(DriveFormRegistry.getDriveFormMap().size() + " Drive form(s) loaded");
    // Synthesis Recipes init
    ModSynthesisRecipes.init();
    KingdomKeys.logger.info(RecipeRegistry.getRecipeMap().size() + " Synthesis recipe(s) loaded");
    ModSynthesisFreeDevRecipes.init();
    KingdomKeys.logger.info(FreeDevRecipeRegistry.getFreeDevRecipeMap().size() + " Free Development recipe(s) loaded");
    ModSynthesisMaterials.init();
    KingdomKeys.logger.info(MaterialRegistry.getMaterialMap().size() + " Material(s) loaded");
    Constants.registerCosts();
    Constants.registerMagicLevels();
    if (MainConfig.worldgen.EnableWorldGen) {
        VillagerRegistry.instance().registerVillageCreationHandler(new MoogleHouse.VillageManager());
        MapGenStructureIO.registerStructureComponent(MoogleHouse.class, Reference.MODID + ":moogle_house");
    }
    VillagerRegistry.VillagerProfession librarian = ForgeRegistries.VILLAGER_PROFESSIONS.getValue(new ResourceLocation("minecraft:librarian"));
    librarian.getCareer(1).addTrade(1, new VillagerTrades());
    // Chest loot init
    MinecraftForge.EVENT_BUS.register(new ChestGen());
    KingdomKeys.logger.info("Chest loot loaded");
}
Also used : MoogleHouse(uk.co.wehavecookies56.kk.common.world.MoogleHouse) VillagerTrades(uk.co.wehavecookies56.kk.common.core.handler.VillagerTrades) ChestGen(uk.co.wehavecookies56.kk.common.world.ChestGen) VillagerRegistry(net.minecraftforge.fml.common.registry.VillagerRegistry) ResourceLocation(net.minecraft.util.ResourceLocation) GuiHandler(uk.co.wehavecookies56.kk.common.core.handler.GuiHandler)

Aggregations

ResourceLocation (net.minecraft.util.ResourceLocation)1 VillagerRegistry (net.minecraftforge.fml.common.registry.VillagerRegistry)1 GuiHandler (uk.co.wehavecookies56.kk.common.core.handler.GuiHandler)1 VillagerTrades (uk.co.wehavecookies56.kk.common.core.handler.VillagerTrades)1 ChestGen (uk.co.wehavecookies56.kk.common.world.ChestGen)1 MoogleHouse (uk.co.wehavecookies56.kk.common.world.MoogleHouse)1