Added new brews.

This commit is contained in:
Lizbeth Rika committed 2015-01-25 22:21:51 +00:00
1 parent b8e4bbab4e
commit 133f696c66
17 files changed
+197 -153

No files matched your search

@@ -12,6 +12,7 @@
package vazkii.botania.common.brew.potion;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.potion.Potion;
import net.minecraft.util.ResourceLocation;
import vazkii.botania.client.lib.LibResources;
@@ -43,5 +44,13 @@ public class PotionMod extends Potion {
return super.getStatusIconIndex();
}
public boolean hasEffect(EntityLivingBase entity) {
return hasEffect(entity, this);
}
public boolean hasEffect(EntityLivingBase entity, Potion potion) {
return entity.getActivePotionEffect(potion) != null;
}
}