summaryrefslogtreecommitdiff
path: root/src/main/java/darkknight/jewelrycraft/damage/DamageSourceList.java
blob: e15675539acbf855b396ff3ec9de0bc1ce50eb44 (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
28
29
30
31
package darkknight.jewelrycraft.damage;

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

/**
 * @author Sorin
 */
public class DamageSourceList {
	public static DamageSource	shadows, weak, blackHeart,
			doubleDown;
	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")
					.setDamageBypassesArmor();
			doubleDown = new DamageSource("doubleDown");
			isInitialized = true;
		}
	}
}