aether-legacy/src/main/java/com/gildedgames/the_aether/Aether.java

73 lines
2.4 KiB
Java
Raw Normal View History

2020-08-14 08:29:22 +02:00
package com.gildedgames.the_aether;
2016-12-17 16:28:16 +01:00
2020-08-14 08:29:22 +02:00
import com.gildedgames.the_aether.events.AetherEntityEvents;
2016-12-17 16:28:16 +01:00
import net.minecraft.util.ResourceLocation;
2020-08-14 08:29:22 +02:00
import com.gildedgames.the_aether.blocks.BlocksAether;
import com.gildedgames.the_aether.entities.EntitiesAether;
import com.gildedgames.the_aether.items.ItemsAether;
import com.gildedgames.the_aether.network.AetherNetwork;
import com.gildedgames.the_aether.player.PlayerAetherEvents;
import com.gildedgames.the_aether.player.perks.AetherRankings;
import com.gildedgames.the_aether.registry.AetherRegistries;
import com.gildedgames.the_aether.registry.achievements.AchievementsAether;
import com.gildedgames.the_aether.registry.creative_tabs.AetherCreativeTabs;
import com.gildedgames.the_aether.tileentity.AetherTileEntities;
import com.gildedgames.the_aether.world.AetherWorld;
2016-12-17 16:28:16 +01:00
2018-12-07 05:33:43 +01:00
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
2021-04-17 02:38:31 +02:00
@Mod(modid = Aether.MOD_ID, version = "v1.1.2.2")
2018-12-07 06:32:48 +01:00
public class Aether {
2016-12-17 16:28:16 +01:00
2018-12-07 05:33:43 +01:00
public static final String MOD_ID = "aether_legacy";
2016-12-17 16:28:16 +01:00
2018-12-07 05:33:43 +01:00
@Instance(Aether.MOD_ID)
2016-12-17 16:28:16 +01:00
public static Aether instance;
2020-08-14 08:29:22 +02:00
@SidedProxy(clientSide = "com.gildedgames.the_aether.client.ClientProxy", serverSide = "com.gildedgames.the_aether.CommonProxy")
2017-12-24 05:48:56 +01:00
public static CommonProxy proxy;
2016-12-17 16:28:16 +01:00
2018-12-07 06:32:48 +01:00
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
AetherRankings.initialization();
AetherNetwork.preInitialization();
AetherConfig.init(event.getModConfigurationDirectory());
}
2018-12-07 05:33:43 +01:00
2018-12-07 06:32:48 +01:00
@EventHandler
public void init(FMLInitializationEvent event) {
BlocksAether.initialization();
BlocksAether.initializeHarvestLevels();
2018-12-07 06:32:48 +01:00
ItemsAether.initialization();
AetherRegistries.register();
EntitiesAether.initialization();
AetherCreativeTabs.initialization();
AetherTileEntities.initialization();
AetherWorld.initialization();
AchievementsAether.initialization();
2018-12-07 05:33:43 +01:00
2018-12-07 06:32:48 +01:00
proxy.init();
2018-12-07 05:33:43 +01:00
2018-12-07 06:32:48 +01:00
CommonProxy.registerEvent(new PlayerAetherEvents());
CommonProxy.registerEvent(new AetherEventHandler());
CommonProxy.registerEvent(new AetherEntityEvents());
2018-12-07 06:32:48 +01:00
}
2016-12-17 16:28:16 +01:00
2018-12-07 06:32:48 +01:00
public static ResourceLocation locate(String location) {
2018-12-07 05:33:43 +01:00
return new ResourceLocation(MOD_ID, location);
2016-12-17 16:28:16 +01:00
}
2018-12-07 06:32:48 +01:00
public static String find(String location) {
2018-12-07 05:33:43 +01:00
return modAddress() + location;
2016-12-17 16:28:16 +01:00
}
2018-12-07 06:32:48 +01:00
public static String modAddress() {
2018-12-07 05:33:43 +01:00
return MOD_ID + ":";
2016-12-17 16:28:16 +01:00
}
2018-12-07 05:33:43 +01:00
}