BiomesOPlenty/src/minecraft/biomesoplenty/configuration/BOPPotions.java

33 lines
880 B
Java
Raw Normal View History

package biomesoplenty.configuration;
2013-05-25 09:33:37 +00:00
import com.google.common.base.Optional;
import cpw.mods.fml.common.registry.LanguageRegistry;
2013-05-25 09:33:37 +00:00
import biomesoplenty.api.Potions;
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"));
}
private static void registerPotionNames()
{
LanguageRegistry.instance().addStringLocalization("potion.nourishment", "en_US", "Nourishment");
}
}