blob: 53c768e911e4aac82da61dc99bf69f5402dfe48d (
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
34
35
|
/**
*
*/
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
}
}
|