2013-05-25 08:57:21 +00:00
|
|
|
package biomesoplenty.configuration;
|
|
|
|
|
2013-05-25 09:33:37 +00:00
|
|
|
import com.google.common.base.Optional;
|
|
|
|
|
2013-05-25 08:57:21 +00:00
|
|
|
import cpw.mods.fml.common.registry.LanguageRegistry;
|
2013-05-25 09:33:37 +00:00
|
|
|
import biomesoplenty.api.Potions;
|
2013-05-25 08:57:21 +00:00
|
|
|
import biomesoplenty.helpers.BOPLiquidHelper;
|
|
|
|
import biomesoplenty.potions.PotionEventHandler;
|
|
|
|
import biomesoplenty.potions.PotionNourishment;
|
|
|
|
import net.minecraft.potion.Potion;
|
|
|
|
import net.minecraftforge.common.MinecraftForge;
|
|
|
|
|
|
|
|
public class BOPPotions
|
|
|
|
{
|
|
|
|
public static void init()
|
|
|
|
{
|
|
|
|
intializePotions();
|
|
|
|
registerPotionNames();
|
|
|
|
|
|
|
|
MinecraftForge.EVENT_BUS.register(new PotionEventHandler());
|
|
|
|
}
|
|
|
|
|
|
|
|
private static void intializePotions()
|
|
|
|
{
|
2013-05-25 09:33:37 +00:00
|
|
|
Potions.nourishment = Optional.of((new PotionNourishment(32, false, 0)).setPotionName("potion.nourishment"));
|
2013-05-25 08:57:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private static void registerPotionNames()
|
|
|
|
{
|
|
|
|
LanguageRegistry.instance().addStringLocalization("potion.nourishment", "en_US", "Nourishment");
|
|
|
|
}
|
|
|
|
}
|