Search in sources :

Example 1 with VanillaHandler

use of com.axanthic.loi.utils.VanillaHandler 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)

Example 2 with VanillaHandler

use of com.axanthic.loi.utils.VanillaHandler in project Lands-of-Icaria by Axanthic-Game-Studios.

the class ClientProxy method preInit.

@Override
public void preInit(FMLPreInitializationEvent event) {
    super.preInit(event);
    MinecraftForge.EVENT_BUS.register(this);
    MinecraftForge.EVENT_BUS.register(new VanillaHandler());
    RenderingRegistry.registerEntityRenderingHandler(EntityBident.class, RenderBident::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityFallingVase.class, RenderFallingBlock::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityGrenade.class, RenderGrenade::new);
    RenderingRegistry.registerEntityRenderingHandler(EntitySpellWisp.class, RenderSpellWisp::new);
    RenderingRegistry.registerEntityRenderingHandler(EntitySpellBubble.class, RenderSpellBubble::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityFloatingBlock.class, RenderFallingBlock::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityAeternae.class, RenderAeternae::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityCatoblepas.class, RenderCatoblepas::new);
    RenderingRegistry.registerEntityRenderingHandler(EntitySnull.class, RenderSnull::new);
    RenderingRegistry.registerEntityRenderingHandler(EntitySow.class, RenderSow::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityJellyfish.class, RenderJellyfish::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityLight.class, RenderLight::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityForestHagPlane.class, RenderForestHagPlane::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityForestHagPopulus.class, RenderForestHagPopulus::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityForestHagCypress.class, RenderForestHagCypress::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityForestHagFir.class, RenderForestHagFir::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityForestHagOlive.class, RenderForestHagOlive::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityForestHagLaurel.class, RenderForestHagLaurel::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityForestHagDroughtroot.class, RenderForestHagDroughtroot::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityArachneDrone.class, RenderArachneDrone::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityArachne.class, RenderArachne::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityMyrmeke.class, RenderMyrmeke::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityCerver.class, RenderCerver::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityArganHound.class, RenderArganHound::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityRevenantCivilian.class, RenderRevenantCivilian::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityRevenantSoldier.class, RenderRevenantSoldier::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityRevenantCaptain.class, RenderRevenantCaptain::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityRevenantPyromancer.class, RenderRevenantPyromancer::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityRevenantPyromancerNether.class, RenderRevenantPyromancerNether::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityRevenantCrawler.class, RenderRevenantCrawler::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityRevenantOvergrown.class, RenderRevenantOvergrown::new);
    RenderingRegistry.registerEntityRenderingHandler(EntitySiren.class, RenderSiren::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityScorpion.class, RenderScorpion::new);
    RenderingRegistry.registerEntityRenderingHandler(EntitySolifugae.class, RenderSolifugae::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityVinegaroon.class, RenderVinegaroon::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityVinegar.class, RenderVinegar::new);
    RenderingRegistry.registerEntityRenderingHandler(EntityWhipSpider.class, RenderWhipSpider::new);
    emissiveTextures.put("calcite", new String[] { ModInformation.ID + ":blocks/gem_calcite_model" });
    emissiveTextures.put("halite", new String[] { ModInformation.ID + ":blocks/gem_halite_model" });
    emissiveTextures.put("jasper", new String[] { ModInformation.ID + ":blocks/gem_jasper_model" });
    emissiveTextures.put("zircon", new String[] { ModInformation.ID + ":blocks/gem_zircon_model" });
    emissiveTextures.put("block_gem", new String[] { ModInformation.ID + ":blocks/mineral_calcite_block", ModInformation.ID + ":blocks/mineral_halite_block", ModInformation.ID + ":blocks/mineral_jasper_block", ModInformation.ID + ":blocks/mineral_zircon_block" });
    emissiveTextures.put("block_metal", new String[] { ModInformation.ID + ":blocks/metal_bluridium_block" });
    emissiveTextures.put("ore", new String[] { ModInformation.ID + ":blocks/rock_baetyl_ore_bluridium_overlay" });
    emissiveTextures.put("icaria_portal", new String[] { ModInformation.ID + ":blocks/icaria_portal" });
    // emissiveTextures.put("crafting_forge", new String[]{ ModInformation.ID + ":blocks/crafting_forge_fire" });
    // emissiveTextures.put("crafting_kiln", new String[]{ ModInformation.ID + ":blocks/crafting_kiln_fire" });
    LOIItemStackRenderer.LOIInstance = new LOIItemStackRenderer();
    if (LOIConfig.hud.indicatorEnabled)
        MinecraftForge.EVENT_BUS.register(new GuiStatIndicator());
}
Also used : LOIItemStackRenderer(com.axanthic.loi.utils.LOIItemStackRenderer) VanillaHandler(com.axanthic.loi.utils.VanillaHandler) GuiStatIndicator(com.axanthic.loi.gui.GuiStatIndicator) RenderFallingBlock(net.minecraft.client.renderer.entity.RenderFallingBlock)

Aggregations

VanillaHandler (com.axanthic.loi.utils.VanillaHandler)2 GuiHandlerLOI (com.axanthic.loi.gui.GuiHandlerLOI)1 GuiStatIndicator (com.axanthic.loi.gui.GuiStatIndicator)1 LOIItemStackRenderer (com.axanthic.loi.utils.LOIItemStackRenderer)1 RenderFallingBlock (net.minecraft.client.renderer.entity.RenderFallingBlock)1 ResourceLocation (net.minecraft.util.ResourceLocation)1