BiomesOPlenty/common/biomesoplenty/potions/PotionPossession.java
2013-09-13 18:17:21 +10:00

30 lines
692 B
Java

package biomesoplenty.potions;
import net.minecraft.client.Minecraft;
import net.minecraft.potion.Potion;
import net.minecraft.util.ResourceLocation;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class PotionPossession extends Potion
{
public PotionPossession(int par1, boolean par2, int par3)
{
super(par1, par2, par3);
this.setIconIndex(1, 0);
}
@Override
@SideOnly(Side.CLIENT)
public int getStatusIconIndex()
{
Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation("biomesoplenty:textures/potions/BOPPotionFX.png"));
return 2;
}
@Override
public boolean isReady(int par1, int par2)
{
return par1 >= 1;
}
}