mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-27 15:33:08 +00:00
78 lines
4.1 KiB
Java
78 lines
4.1 KiB
Java
/**
|
|
* This class was created by <Vazkii>. It's distributed as
|
|
* part of the Botania Mod. Get the Source Code in github:
|
|
* https://github.com/Vazkii/Botania
|
|
*
|
|
* Botania is Open Source and distributed under the
|
|
* Botania License: http://botaniamod.net/license.php
|
|
*
|
|
* File Created @ [Nov 1, 2014, 7:00:33 PM (GMT)]
|
|
*/
|
|
package vazkii.botania.common.brew;
|
|
|
|
import net.minecraft.init.MobEffects;
|
|
import net.minecraft.potion.Potion;
|
|
import net.minecraft.potion.PotionEffect;
|
|
import net.minecraft.util.ResourceLocation;
|
|
import vazkii.botania.api.brew.Brew;
|
|
import vazkii.botania.common.lib.LibBrewNames;
|
|
|
|
public class ModBrews {
|
|
|
|
public static Brew speed;
|
|
public static Brew strength;
|
|
public static Brew haste;
|
|
public static Brew healing;
|
|
public static Brew jumpBoost;
|
|
public static Brew regen;
|
|
public static Brew regenWeak;
|
|
public static Brew resistance;
|
|
public static Brew fireResistance;
|
|
public static Brew waterBreathing;
|
|
public static Brew invisibility;
|
|
public static Brew nightVision;
|
|
public static Brew absorption;
|
|
|
|
public static Brew allure;
|
|
public static Brew soulCross;
|
|
public static Brew featherfeet;
|
|
public static Brew emptiness;
|
|
public static Brew bloodthirst;
|
|
public static Brew overload;
|
|
public static Brew clear;
|
|
|
|
public static Brew warpWard;
|
|
|
|
public static void init() {
|
|
speed = new BrewMod(LibBrewNames.SPEED, 0x59B7FF, 4000, new PotionEffect(MobEffects.SPEED, 1800, 1));
|
|
strength = new BrewMod(LibBrewNames.STRENGTH, 0xEE3F3F, 4000, new PotionEffect(MobEffects.STRENGTH, 1800, 1));
|
|
haste = new BrewMod(LibBrewNames.HASTE, 0xF4A432, 4000, new PotionEffect(MobEffects.HASTE, 1800, 1));
|
|
healing = new BrewMod(LibBrewNames.HEALING, 0xFF5ECC, 6000, new PotionEffect(MobEffects.INSTANT_HEALTH, 1, 1));
|
|
jumpBoost = new BrewMod(LibBrewNames.JUMP_BOOST, 0x32F46D, 4000, new PotionEffect(MobEffects.JUMP_BOOST, 1800, 1));
|
|
regen = new BrewMod(LibBrewNames.REGEN, 0xFD6488, 7000, new PotionEffect(MobEffects.REGENERATION, 500, 1));
|
|
regenWeak = new BrewMod(LibBrewNames.REGEN_WEAK, 0xFD6488, 9000, new PotionEffect(MobEffects.REGENERATION, 2400, 0));
|
|
resistance = new BrewMod(LibBrewNames.RESISTANCE, 0xB44E17, 4000, new PotionEffect(MobEffects.RESISTANCE, 1800, 1));
|
|
fireResistance = new BrewMod(LibBrewNames.FIRE_RESISTANCE, 0xF86900, 4000, new PotionEffect(MobEffects.FIRE_RESISTANCE, 9600, 0));
|
|
waterBreathing = new BrewMod(LibBrewNames.WATER_BREATHING, 0x84A7CF, 4000, new PotionEffect(MobEffects.WATER_BREATHING, 9600, 0));
|
|
invisibility = new BrewMod(LibBrewNames.INVISIBILITY, 0xAEAEAE, 8000, new PotionEffect(MobEffects.INVISIBILITY, 9600, 0));
|
|
nightVision = new BrewMod(LibBrewNames.NIGHT_VISION, 0x7C4BEB, 4000, new PotionEffect(MobEffects.NIGHT_VISION, 9600, 0));
|
|
absorption = new BrewMod(LibBrewNames.ABSORPTION, 0xF2EB23, 7000, new PotionEffect(MobEffects.ABSORPTION, 1800, 3)).setNotBloodPendantInfusable().setNotIncenseInfusable();
|
|
|
|
overload = new BrewMod(LibBrewNames.OVERLOAD, 0x232323, 12000, new PotionEffect(MobEffects.STRENGTH, 1800, 3), new PotionEffect(MobEffects.SPEED, 1800, 2), new PotionEffect(MobEffects.WEAKNESS, 3600, 2), new PotionEffect(MobEffects.HUNGER, 200, 2));
|
|
soulCross = new BrewMod(LibBrewNames.SOUL_CROSS, 10000, new PotionEffect(ModPotions.soulCross, 1800, 0));
|
|
featherfeet = new BrewMod(LibBrewNames.FEATHER_FEET, 7000, new PotionEffect(ModPotions.featherfeet, 1800, 0));
|
|
emptiness = new BrewMod(LibBrewNames.EMPTINESS, 30000, new PotionEffect(ModPotions.emptiness, 7200, 0));
|
|
bloodthirst = new BrewMod(LibBrewNames.BLOODTHIRST, 20000, new PotionEffect(ModPotions.bloodthrst, 7200, 0));
|
|
allure = new BrewMod(LibBrewNames.ALLURE, 2000, new PotionEffect(ModPotions.allure, 4800, 0));
|
|
clear = new BrewMod(LibBrewNames.CLEAR, 4000, new PotionEffect(ModPotions.clear, 0, 0));
|
|
}
|
|
|
|
public static void initTC() {
|
|
Potion warpWardPotion = Potion.REGISTRY.getObject(new ResourceLocation("minecraft:warp_ward"));
|
|
// thaumcraft 5 is registering its potions under the Minecraft namespace
|
|
|
|
if(warpWardPotion != null)
|
|
warpWard = new BrewMod(LibBrewNames.WARP_WARD, 0xFBBDFF, 25000, new PotionEffect(warpWardPotion, 12000, 0)).setNotBloodPendantInfusable();
|
|
}
|
|
}
|