Search in sources :

Example 1 with GuiHandlerLOI

use of com.axanthic.loi.gui.GuiHandlerLOI in project Lands-of-Icaria by Axanthic-Game-Studios.

the class CommonProxy method preInit.

public void preInit(FMLPreInitializationEvent event) {
    MinecraftForge.EVENT_BUS.register(LandsOfIcaria.instance);
    MinecraftForge.EVENT_BUS.register(new VanillaHandler());
    LandsOfIcaria.logger = event.getModLog();
    Resources.registerBlocks();
    Resources.registerItems();
    LOIFluids.registerFluids();
    LOISigns.registerSigns();
    LOIVines.registerVines();
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "bident"), EntityBident.class, "icaria.bident", 0, ModInformation.ID, 64, 20, true);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "falling_vase"), EntityFallingVase.class, "icaria.falling_vase", 1, ModInformation.ID, 160, 20, true);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "greek_fire_grenade"), EntityGrenade.class, "icaria.greek_fire_grenade", 2, ModInformation.ID, 64, 20, true);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "spell_wisp"), EntitySpellWisp.class, "icaria.spell_wisp", 3, ModInformation.ID, 64, 20, true);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "spell_bubble"), EntitySpellBubble.class, "icaria.spell_bubble", 4, ModInformation.ID, 64, 20, true);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "floating_block"), EntityFloatingBlock.class, "icaria.floating_block", 5, ModInformation.ID, 160, 20, true);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "aeternae"), EntityAeternae.class, "icaria.aeternae", 30, ModInformation.ID, 80, 3, true, 0xE27E1E, 0xF9BC0B);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "catoblepas"), EntityCatoblepas.class, "icaria.catoblepas", 31, ModInformation.ID, 80, 3, true, 0x615238, 0xDACCB7);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "snull"), EntitySnull.class, "icaria.snull", 32, ModInformation.ID, 80, 3, true, 0x654E3F, 0x747673);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "sow"), EntitySow.class, "icaria.sow", 33, ModInformation.ID, 80, 3, true, 0x625242, 0x27201A);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "jellyfish"), EntityJellyfish.class, "icaria.jellyfish", 34, ModInformation.ID, 80, 6, true, 0x750800, 0xB6897D);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "light"), EntityLight.class, "icaria.light", 35, ModInformation.ID, 80, 6, true, 0xABFFED, 0xFFABAB);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "arachne_drone"), EntityArachneDrone.class, "icaria.arachne_drone", 62, ModInformation.ID, 80, 3, true, 0x56422A, 0x80AFBF);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "arachne"), EntityArachne.class, "icaria.arachne", 63, ModInformation.ID, 80, 3, true, 0x7B6147, 0x80AFBF);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "myrmeke"), EntityMyrmeke.class, "icaria.myrmeke", 64, ModInformation.ID, 80, 3, true, 0x472317, 0x26120C);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "cerver"), EntityCerver.class, "icaria.cerver", 65, ModInformation.ID, 80, 3, true, 0x362923, 0x211916);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "argan_hound"), EntityArganHound.class, "icaria.argan_hound", 66, ModInformation.ID, 80, 3, true, 0x4A3721, 0x211406);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "revenant_civilian"), EntityRevenantCivilian.class, "icaria.revenant_civilian", 67, ModInformation.ID, 80, 3, true, 0xB6B6B6, 0x868686);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "revenant_soldier"), EntityRevenantSoldier.class, "icaria.revenant_soldier", 68, ModInformation.ID, 80, 3, true, 0x836A6A, 0x868686);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "revenant_captain"), EntityRevenantCaptain.class, "icaria.revenant_captain", 69, ModInformation.ID, 80, 3, true, 0xFFDC39, 0x868686);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "revenant_pyromancer"), EntityRevenantPyromancer.class, "icaria.revenant_pyromancer", 70, ModInformation.ID, 80, 3, true, 0x7DB544, 0x868686);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "revenant_pyromancer_nether"), EntityRevenantPyromancerNether.class, "icaria.revenant_pyromancer_nether", 71, ModInformation.ID, 80, 3, true, 0xB55D44, 0x868686);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "revenant_crawler"), EntityRevenantCrawler.class, "icaria.revenant_crawler", 72, ModInformation.ID, 80, 3, true, 0x2C2E12, 0x868686);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "revenant_overgrown"), EntityRevenantOvergrown.class, "icaria.revenant_overgrown", 73, ModInformation.ID, 80, 3, true, 0x5B6905, 0x868686);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "forest_hag_plane"), EntityForestHagPlane.class, "icaria.forest_hag_plane", 75, ModInformation.ID, 80, 3, true, 0x7A7B77, 0x8DC270);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "forest_hag_populus"), EntityForestHagPopulus.class, "icaria.forest_hag_populus", 76, ModInformation.ID, 80, 3, true, 0xD9D5D4, 0x7ABC96);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "forest_hag_cypress"), EntityForestHagCypress.class, "icaria.forest_hag_cypress", 77, ModInformation.ID, 80, 3, true, 0x7C6F66, 0x667715);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "forest_hag_fir"), EntityForestHagFir.class, "icaria.forest_hag_fir", 78, ModInformation.ID, 80, 3, true, 0x887558, 0x40774F);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "forest_hag_olive"), EntityForestHagOlive.class, "icaria.forest_hag_olive", 79, ModInformation.ID, 80, 3, true, 0x969E8F, 0xAFA731);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "forest_hag_laurel"), EntityForestHagLaurel.class, "icaria.forest_hag_laurel", 80, ModInformation.ID, 80, 3, true, 0x523A2A, 0x55661A);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "forest_hag_droughtroot"), EntityForestHagDroughtroot.class, "icaria.forest_hag_droughtroot", 81, ModInformation.ID, 80, 3, true, 0x524A4B, 0x879117);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "siren"), EntitySiren.class, "icaria.siren", 85, ModInformation.ID, 80, 3, true, 0x5C463B, 0xBB8E85);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "scorpion"), EntityScorpion.class, "icaria.scorpion", 86, ModInformation.ID, 80, 3, true, 0xC18743, 0x7F5E39);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "solifugae"), EntitySolifugae.class, "icaria.solifugae", 87, ModInformation.ID, 80, 3, true, 0xD3C1B1, 0xAF7D4D);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "vinegaroon"), EntityVinegaroon.class, "icaria.vinegaroon", 88, ModInformation.ID, 80, 3, true, 0x4C3722, 0xC99559);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "vinegar"), EntityVinegar.class, "icaria.vinegar", 89, ModInformation.ID, 64, 20, true);
    EntityRegistry.registerModEntity(new ResourceLocation(ModInformation.ID, "whip_spider"), EntityWhipSpider.class, "icaria.whip_spider", 90, ModInformation.ID, 80, 3, true, 0xC18743, 0x7F5E39);
    EntityRegistry.addSpawn(EntityRevenantPyromancerNether.class, 30, 1, 2, EnumCreatureType.MONSTER, Biomes.HELL);
    GameRegistry.registerTileEntity(TileEntityVase.class, new ResourceLocation(ModInformation.ID, "storage_vase"));
    GameRegistry.registerTileEntity(TileEntityKiln.class, new ResourceLocation(ModInformation.ID, "crafting_kiln"));
    GameRegistry.registerTileEntity(TileEntityGrinder.class, new ResourceLocation(ModInformation.ID, "crafting_grinder"));
    GameRegistry.registerTileEntity(TileEntityForge.class, new ResourceLocation(ModInformation.ID, "crafting_forge"));
    GameRegistry.registerTileEntity(TileEntityForgeRedirector.class, new ResourceLocation(ModInformation.ID, "crafting_forge_redirector"));
    GameRegistry.registerTileEntity(TileEntityKettle.class, new ResourceLocation(ModInformation.ID, "crafting_kettle"));
    GameRegistry.registerTileEntity(TileEntityMobHead.class, new ResourceLocation(ModInformation.ID, "mob_head"));
    // if (LOIConfig.compat.albedo && Loader.isModLoaded("albedo"))
    GameRegistry.registerTileEntity(TileEntityColoredLight.class, new ResourceLocation(ModInformation.ID, "colored_light"));
    // signs
    GameRegistry.registerTileEntity(TESignPlane.class, new ResourceLocation(ModInformation.ID, "sign_plane"));
    GameRegistry.registerTileEntity(TESignPopulus.class, new ResourceLocation(ModInformation.ID, "sign_populus"));
    GameRegistry.registerTileEntity(TESignCypress.class, new ResourceLocation(ModInformation.ID, "sign_cypress"));
    GameRegistry.registerTileEntity(TESignFir.class, new ResourceLocation(ModInformation.ID, "sign_fir"));
    GameRegistry.registerTileEntity(TESignOlive.class, new ResourceLocation(ModInformation.ID, "sign_olive"));
    GameRegistry.registerTileEntity(TESignLaurel.class, new ResourceLocation(ModInformation.ID, "sign_laurel"));
    GameRegistry.registerTileEntity(TESignDroughtroot.class, new ResourceLocation(ModInformation.ID, "sign_droughtroot"));
    // chests
    GameRegistry.registerTileEntity(TileEntityIcariaChest.class, new ResourceLocation(ModInformation.ID, "icaria_chest"));
    NetworkRegistry.INSTANCE.registerGuiHandler(LandsOfIcaria.instance, GuiHandlerRegistry.getInstance());
    GuiHandlerRegistry.getInstance().registerGuiHandler(new GuiHandlerLOI(), GuiHandlerLOI.getGuiID());
}
Also used : VanillaHandler(com.axanthic.loi.utils.VanillaHandler) ResourceLocation(net.minecraft.util.ResourceLocation) GuiHandlerLOI(com.axanthic.loi.gui.GuiHandlerLOI)

Aggregations

GuiHandlerLOI (com.axanthic.loi.gui.GuiHandlerLOI)1 VanillaHandler (com.axanthic.loi.utils.VanillaHandler)1 ResourceLocation (net.minecraft.util.ResourceLocation)1