| Modifier and Type | Field and Description |
|---|---|
static int |
AWKWARD |
static int |
FIRE_RESISTANCE |
static int |
FIRE_RESISTANCE_LONG |
static int |
HARMING |
static int |
HARMING_II |
protected int |
id |
static int |
INSTANT_HEALTH |
static int |
INSTANT_HEALTH_II |
static int |
INVISIBLE |
static int |
INVISIBLE_LONG |
static int |
LEAPING |
static int |
LEAPING_II |
static int |
LEAPING_LONG |
protected int |
level |
static int |
MUNDANE |
static int |
MUNDANE_II |
static int |
NIGHT_VISION |
static int |
NIGHT_VISION_LONG |
static int |
NO_EFFECTS |
static int |
POISON |
static int |
POISON_II |
static int |
POISON_LONG |
protected static Potion[] |
potions |
static int |
REGENERATION |
static int |
REGENERATION_II |
static int |
REGENERATION_LONG |
static int |
SLOW_FALLING |
static int |
SLOW_FALLING_LONG |
static int |
SLOWNESS |
static int |
SLOWNESS_LONG |
static int |
SPEED |
static int |
SPEED_II |
static int |
SPEED_LONG |
protected boolean |
splash |
static int |
STRENGTH |
static int |
STRENGTH_II |
static int |
STRENGTH_LONG |
static int |
THICK |
static int |
TURTLE_MASTER |
static int |
TURTLE_MASTER_II |
static int |
TURTLE_MASTER_LONG |
static int |
WATER |
static int |
WATER_BREATHING |
static int |
WATER_BREATHING_LONG |
static int |
WEAKNESS |
static int |
WEAKNESS_LONG |
static int |
WITHER_II |
| Constructor and Description |
|---|
Potion(int id) |
Potion(int id,
int level) |
Potion(int id,
int level,
boolean splash) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyPotion(Entity entity) |
void |
applyPotion(Entity entity,
double health) |
Potion |
clone() |
static int |
getApplySeconds(int potionType,
boolean isSplash) |
Effect |
getEffect() |
static Effect |
getEffect(int potionType,
boolean isSplash) |
int |
getId() |
int |
getLevel() |
static int |
getLevel(int potionType) |
static Potion |
getPotion(int id) |
static Potion |
getPotionByName(String name) |
static void |
init() |
static boolean |
isInstant(int potionType) |
boolean |
isSplash() |
Potion |
setSplash(boolean splash) |
public static final int NO_EFFECTS
public static final int WATER
public static final int MUNDANE
public static final int MUNDANE_II
public static final int THICK
public static final int AWKWARD
public static final int NIGHT_VISION
public static final int NIGHT_VISION_LONG
public static final int INVISIBLE
public static final int INVISIBLE_LONG
public static final int LEAPING
public static final int LEAPING_LONG
public static final int LEAPING_II
public static final int FIRE_RESISTANCE
public static final int FIRE_RESISTANCE_LONG
public static final int SPEED
public static final int SPEED_LONG
public static final int SPEED_II
public static final int SLOWNESS
public static final int SLOWNESS_LONG
public static final int WATER_BREATHING
public static final int WATER_BREATHING_LONG
public static final int INSTANT_HEALTH
public static final int INSTANT_HEALTH_II
public static final int HARMING
public static final int HARMING_II
public static final int POISON
public static final int POISON_LONG
public static final int POISON_II
public static final int REGENERATION
public static final int REGENERATION_LONG
public static final int REGENERATION_II
public static final int STRENGTH
public static final int STRENGTH_LONG
public static final int STRENGTH_II
public static final int WEAKNESS
public static final int WEAKNESS_LONG
public static final int WITHER_II
public static final int TURTLE_MASTER
public static final int TURTLE_MASTER_LONG
public static final int TURTLE_MASTER_II
public static final int SLOW_FALLING
public static final int SLOW_FALLING_LONG
protected static Potion[] potions
protected final int id
protected final int level
protected boolean splash
public Potion(int id)
public Potion(int id,
int level)
public Potion(int id,
int level,
boolean splash)
public static void init()
public static Potion getPotion(int id)
public Effect getEffect()
public int getId()
public int getLevel()
public boolean isSplash()
public Potion setSplash(boolean splash)
public void applyPotion(Entity entity)
public void applyPotion(Entity entity, double health)
public static Effect getEffect(int potionType, boolean isSplash)
public static int getLevel(int potionType)
public static boolean isInstant(int potionType)
public static int getApplySeconds(int potionType,
boolean isSplash)
Copyright © 2020. All rights reserved.