Search in sources :

Example 1 with EssentiaCompat

use of com.github.technus.tectech.compatibility.thaumcraft.EssentiaCompat in project TecTech by Technus.

the class MainLoader method load.

public void load() {
    ProgressManager.ProgressBar progressBarLoad = ProgressManager.push("TecTech Loader", 6);
    progressBarLoad.step("Elemental Things");
    new ElementalLoader().run();
    TecTech.Logger.info("Elemental Init Done");
    progressBarLoad.step("Thaumcraft Compatibility");
    if (hasThaumcraft) {
        essentiaContainerCompat = new EssentiaCompatEnabled();
        essentiaContainerCompat.run();
    } else {
        essentiaContainerCompat = new EssentiaCompat();
    }
    TecTech.Logger.info("Thaumcraft Compatibility Done");
    progressBarLoad.step("Regular Things");
    new ThingsLoader().run();
    TecTech.Logger.info("Block/Item Init Done");
    progressBarLoad.step("Machine Things");
    new MachineLoader().run();
    TecTech.Logger.info("Machine Init Done");
    progressBarLoad.step("Register entities");
    new EntityLoader().run();
    TecTech.Logger.info("Entities registered");
    progressBarLoad.step("Add damage types");
    microwaving = new DamageSource("microwaving").setDamageBypassesArmor();
    elementalPollution = new DamageSource("elementalPollution").setDamageBypassesArmor();
    TecTech.Logger.info("Damage types addition Done");
    ProgressManager.pop(progressBarLoad);
}
Also used : EssentiaCompatEnabled(com.github.technus.tectech.compatibility.thaumcraft.EssentiaCompatEnabled) DamageSource(net.minecraft.util.DamageSource) ProgressManager(cpw.mods.fml.common.ProgressManager) EssentiaCompat(com.github.technus.tectech.compatibility.thaumcraft.EssentiaCompat)

Aggregations

EssentiaCompat (com.github.technus.tectech.compatibility.thaumcraft.EssentiaCompat)1 EssentiaCompatEnabled (com.github.technus.tectech.compatibility.thaumcraft.EssentiaCompatEnabled)1 ProgressManager (cpw.mods.fml.common.ProgressManager)1 DamageSource (net.minecraft.util.DamageSource)1