summaryrefslogtreecommitdiff
path: root/java/darkknight/jewelrycraft/damage/DamageSourceList.java
blob: 019b036d8db13a57cde83428c5be15118f8ab24c (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
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;
    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");
            isInitialized = true;
        }
    }
}