You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
635 B
Java
27 lines
635 B
Java
package net.minecraft.potion;
|
|
|
|
public class PotionHealth extends Potion
|
|
{
|
|
private static final String __OBFID = "CL_00001527";
|
|
|
|
public PotionHealth(int p_i1572_1_, boolean p_i1572_2_, int p_i1572_3_)
|
|
{
|
|
super(p_i1572_1_, p_i1572_2_, p_i1572_3_);
|
|
}
|
|
|
|
/**
|
|
* Returns true if the potion has an instant effect instead of a continuous one (eg Harming)
|
|
*/
|
|
public boolean isInstant()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* checks if Potion effect is ready to be applied this tick.
|
|
*/
|
|
public boolean isReady(int p_76397_1_, int p_76397_2_)
|
|
{
|
|
return p_76397_1_ >= 1;
|
|
}
|
|
} |