mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 21:19:46 +00:00
Added new brews.
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user