BiomesOPlenty/common/biomesoplenty/potions/PotionParalysis.java

31 lines
720 B
Java
Raw Normal View History

package biomesoplenty.potions;
import net.minecraft.client.Minecraft;
import net.minecraft.potion.Potion;
2013-07-09 03:55:12 +00:00
import net.minecraft.util.ResourceLocation;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class PotionParalysis extends Potion
{
2013-05-31 10:34:02 +00:00
public PotionParalysis(int par1, boolean par2, int par3)
{
super(par1, par2, par3);
this.setIconIndex(1, 0);
}
@Override
@SideOnly(Side.CLIENT)
public int getStatusIconIndex()
{
2013-09-13 08:17:21 +00:00
Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation("biomesoplenty:textures/potions/BOPPotionFX.png"));
2013-05-31 10:34:02 +00:00
return 1;
}
@Override
public boolean isReady(int par1, int par2)
{
return par1 >= 1;
}
}