public class PotionHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
blazePowderEffect |
static java.lang.String |
fermentedSpiderEyeEffect |
static java.lang.String |
field_77924_a |
static java.lang.String |
ghastTearEffect |
static java.lang.String |
glowstoneEffect |
static java.lang.String |
goldenCarrotEffect |
static java.lang.String |
gunpowderEffect |
static java.lang.String |
magmaCreamEffect |
static java.lang.String |
pufferfishEffect |
static java.lang.String |
rabbitFootEffect |
static java.lang.String |
redstoneEffect |
static java.lang.String |
speckledMelonEffect |
static java.lang.String |
spiderEyeEffect |
static java.lang.String |
sugarEffect |
Constructor and Description |
---|
PotionHelper() |
Modifier and Type | Method and Description |
---|---|
static int |
applyIngredient(int p_77913_0_,
java.lang.String p_77913_1_)
Returns the new potion damage value after the specified ingredient info is applied to the specified potion.
|
static int |
calcPotionLiquidColor(java.util.Collection<PotionEffect> p_77911_0_)
Given a
Collection <PotionEffect > will return an Integer color. |
static boolean |
checkFlag(int p_77914_0_,
int p_77914_1_)
Checks if the bit at 1 << j is on in i.
|
static int |
func_77908_a(int p_77908_0_,
int p_77908_1_,
int p_77908_2_,
int p_77908_3_,
int p_77908_4_,
int p_77908_5_) |
static boolean |
getAreAmbient(java.util.Collection<PotionEffect> potionEffects)
Check whether a
Collection <PotionEffect > are all ambient. |
static int |
getLiquidColor(int dataValue,
boolean bypassCache)
Given a potion data value, get the associated liquid color (optionally bypassing the cache)
|
static java.util.List<PotionEffect> |
getPotionEffects(int p_77917_0_,
boolean p_77917_1_) |
static java.lang.String |
getPotionPrefix(int dataValue)
Given a potion data value, get its prefix as a translation ID.
|
static int |
getPotionPrefixIndex(int dataValue)
Given a potion data value, get its prefix index number.
|
public static final java.lang.String field_77924_a
public static final java.lang.String sugarEffect
public static final java.lang.String ghastTearEffect
public static final java.lang.String spiderEyeEffect
public static final java.lang.String fermentedSpiderEyeEffect
public static final java.lang.String speckledMelonEffect
public static final java.lang.String blazePowderEffect
public static final java.lang.String magmaCreamEffect
public static final java.lang.String redstoneEffect
public static final java.lang.String glowstoneEffect
public static final java.lang.String gunpowderEffect
public static final java.lang.String goldenCarrotEffect
public static final java.lang.String pufferfishEffect
public static final java.lang.String rabbitFootEffect
public static boolean checkFlag(int p_77914_0_, int p_77914_1_)
public static int getPotionPrefixIndex(int dataValue)
public static int calcPotionLiquidColor(java.util.Collection<PotionEffect> p_77911_0_)
Collection
<PotionEffect
> will return an Integer color.public static boolean getAreAmbient(java.util.Collection<PotionEffect> potionEffects)
Collection
<PotionEffect
> are all ambient.public static int getLiquidColor(int dataValue, boolean bypassCache)
public static java.lang.String getPotionPrefix(int dataValue)
public static java.util.List<PotionEffect> getPotionEffects(int p_77917_0_, boolean p_77917_1_)
public static int applyIngredient(int p_77913_0_, java.lang.String p_77913_1_)
public static int func_77908_a(int p_77908_0_, int p_77908_1_, int p_77908_2_, int p_77908_3_, int p_77908_4_, int p_77908_5_)