summaryrefslogtreecommitdiff
path: root/java/darkknight/jewelrycraft/damage/DamageSourceList.java
blob: 915ec9e5771dfde80eb3c28757364556c69265b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package darkknight.jewelrycraft.damage;

import net.minecraft.util.DamageSource;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;

/**
 * @author Sorin
 */
public class DamageSourceList
{
    public static DamageSource shadows, weak, blackHeart, basic;
    private static boolean isInitialized = false;
    
    /**
     * @param e
     */
    public static void postInit(FMLPostInitializationEvent e)
    {
        if (!isInitialized){
            shadows = new DamageSource("shadows").setDamageBypassesArmor().setDamageIsAbsolute();
            blackHeart = new DamageSource("blackHeart").setDamageBypassesArmor().setDamageIsAbsolute();
            weak = new DamageSource("weak");
            basic = new DamageSource("basic").setDifficultyScaled();
            isInitialized = true;
        }
    }
}