2015-11-02 12:39:44 -08:00
|
|
|
package WayofTime.bloodmagic.registry;
|
2015-10-29 20:22:14 -07:00
|
|
|
|
2016-04-24 11:52:58 -07:00
|
|
|
import WayofTime.bloodmagic.api.Constants;
|
2016-04-04 13:35:10 -04:00
|
|
|
import net.minecraft.potion.Potion;
|
|
|
|
import net.minecraft.util.ResourceLocation;
|
2016-01-26 19:39:39 -05:00
|
|
|
import WayofTime.bloodmagic.api.util.helper.PlayerSacrificeHelper;
|
2015-12-30 11:34:04 -05:00
|
|
|
import WayofTime.bloodmagic.potion.PotionBloodMagic;
|
|
|
|
import WayofTime.bloodmagic.potion.PotionEventHandlers;
|
2016-04-24 10:06:28 -07:00
|
|
|
import net.minecraftforge.fml.common.registry.GameRegistry;
|
2015-12-30 11:34:04 -05:00
|
|
|
|
2015-12-30 15:34:40 -05:00
|
|
|
public class ModPotions
|
|
|
|
{
|
2015-12-27 19:38:12 -05:00
|
|
|
public static Potion drowning;
|
|
|
|
public static Potion boost;
|
|
|
|
public static Potion heavyHeart;
|
2015-12-28 19:09:51 -05:00
|
|
|
public static Potion whirlwind;
|
|
|
|
public static Potion planarBinding;
|
2016-01-08 11:06:07 -05:00
|
|
|
public static Potion soulSnare;
|
2016-01-26 19:39:39 -05:00
|
|
|
public static Potion soulFray;
|
2016-07-12 18:24:19 -04:00
|
|
|
public static Potion fireFuse;
|
2015-12-27 19:38:12 -05:00
|
|
|
|
2015-12-30 15:34:40 -05:00
|
|
|
public static void init()
|
|
|
|
{
|
2015-12-27 19:38:12 -05:00
|
|
|
new PotionEventHandlers();
|
|
|
|
|
2015-12-30 15:34:40 -05:00
|
|
|
// TODO FUTURE MAKE POTION TEXTURES
|
2015-12-27 19:38:12 -05:00
|
|
|
|
2015-12-30 15:34:40 -05:00
|
|
|
// final String resourceLocation = Constants.Mod.MODID +
|
|
|
|
// ":textures/potions/";
|
2015-12-27 19:38:12 -05:00
|
|
|
|
2015-12-30 15:34:40 -05:00
|
|
|
// drowning = new PotionBloodMagic("Drowning", new
|
|
|
|
// ResourceLocation(resourceLocation +
|
|
|
|
// drowning.getName().toLowerCase()), true, 0, 0, 0);
|
2016-07-12 16:57:22 -04:00
|
|
|
boost = registerPotion("Boost", new ResourceLocation("boost"), false, 0xFFFFFF, 0, 1);
|
2015-12-30 15:34:40 -05:00
|
|
|
// new ResourceLocation(resourceLocation +
|
|
|
|
// boost.getName().toLowerCase())
|
2016-04-04 13:35:10 -04:00
|
|
|
|
2016-07-12 18:24:19 -04:00
|
|
|
whirlwind = registerPotion("Whirlwind", new ResourceLocation("whirlwind"), false, 0, 1, 0);
|
|
|
|
planarBinding = registerPotion("Planar Binding", new ResourceLocation("planarBinding"), false, 0, 2, 0);
|
|
|
|
soulSnare = registerPotion("Soul Snare", new ResourceLocation("soulSnare"), false, 0xFFFFFF, 3, 0);
|
|
|
|
soulFray = registerPotion("Soul Fray", new ResourceLocation("soulFray"), true, 0xFFFFFF, 4, 0);
|
2016-01-26 19:39:39 -05:00
|
|
|
PlayerSacrificeHelper.soulFrayId = soulFray;
|
2016-07-12 18:24:19 -04:00
|
|
|
|
|
|
|
fireFuse = registerPotion("Fire Fuse", new ResourceLocation("fireFuse"), true, 0xFF3333, 5, 0);
|
2015-12-30 15:34:40 -05:00
|
|
|
// heavyHeart = new PotionBloodMagic("Heavy Heart", new
|
|
|
|
// ResourceLocation(resourceLocation +
|
|
|
|
// heavyHeart.getName().toLowerCase()), true, 0, 0, 0);
|
2015-12-27 19:38:12 -05:00
|
|
|
}
|
2016-04-04 13:35:10 -04:00
|
|
|
|
|
|
|
protected static Potion registerPotion(String name, ResourceLocation location, boolean badEffect, int potionColour, int x, int y)
|
|
|
|
{
|
|
|
|
Potion potion = new PotionBloodMagic(name, location, badEffect, potionColour, x, y);
|
2016-04-24 11:52:58 -07:00
|
|
|
GameRegistry.register(potion.setRegistryName(location.getResourcePath()));
|
2016-04-04 13:35:10 -04:00
|
|
|
return potion;
|
|
|
|
}
|
2015-10-29 20:22:14 -07:00
|
|
|
}
|