blob: f6d5739e8aef98f3aa871c77a33c3c1d47ade0d5 (
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
32
33
|
/**
*
*/
package darkknight.jewelrycraft.potions;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import net.minecraft.potion.Potion;
/**
* @author Sorin Code for extending Potion list from Mithion SOurce:
* https://github.com/Mithion/ArsMagica2/blob/master/src/main/java/am2/buffs/BuffList.java
*/
public class PotionList {
public static Potion stun;
public static void preInit(FMLPreInitializationEvent e) {
// Do nothing
}
public static void init(FMLInitializationEvent e) {
if (Potion.potionTypes.length > 231) {
stun = new PotionStun(230, true, 0x000000);
} else {
stun = new PotionStun(Potion.potionTypes.length - 2, true, 0x000000);
}
}
public static void postInit(FMLPostInitializationEvent e) {
// Do nothing
}
}
|