Package net.minecraft.potion
Class PotionHelper
- java.lang.Object
-
- net.minecraft.potion.PotionHelper
-
public class PotionHelper extends java.lang.Object
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description PotionHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
applyIngredient(int parInt1, java.lang.String parString1)
+ Returns the new potion damage value after the specified ingredient info is applied to the specified potion.static int
calcPotionLiquidColor(java.util.Collection<PotionEffect> parCollection)
+ Given aCollection
<PotionEffect
> will return an Integer color.static boolean
checkFlag(int parInt1, int parInt2)
+ Checks if the bit at 1 << j is on in i.static int
func_77908_a(int parInt1, int parInt2, int parInt3, int parInt4, int parInt5, int parInt6)
static boolean
getAreAmbient(java.util.Collection<PotionEffect> potionEffects)
+ Check whether aCollection
<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 parInt1, boolean parFlag)
+ Returns a list of effects for the specified potion damage value.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.
-
-
-
Field Detail
-
field_77924_a
public static final java.lang.String field_77924_a
-
sugarEffect
public static final java.lang.String sugarEffect
- See Also:
- Constant Field Values
-
ghastTearEffect
public static final java.lang.String ghastTearEffect
- See Also:
- Constant Field Values
-
spiderEyeEffect
public static final java.lang.String spiderEyeEffect
- See Also:
- Constant Field Values
-
fermentedSpiderEyeEffect
public static final java.lang.String fermentedSpiderEyeEffect
- See Also:
- Constant Field Values
-
speckledMelonEffect
public static final java.lang.String speckledMelonEffect
- See Also:
- Constant Field Values
-
blazePowderEffect
public static final java.lang.String blazePowderEffect
- See Also:
- Constant Field Values
-
magmaCreamEffect
public static final java.lang.String magmaCreamEffect
- See Also:
- Constant Field Values
-
redstoneEffect
public static final java.lang.String redstoneEffect
- See Also:
- Constant Field Values
-
glowstoneEffect
public static final java.lang.String glowstoneEffect
- See Also:
- Constant Field Values
-
gunpowderEffect
public static final java.lang.String gunpowderEffect
- See Also:
- Constant Field Values
-
goldenCarrotEffect
public static final java.lang.String goldenCarrotEffect
- See Also:
- Constant Field Values
-
pufferfishEffect
public static final java.lang.String pufferfishEffect
- See Also:
- Constant Field Values
-
rabbitFootEffect
public static final java.lang.String rabbitFootEffect
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkFlag
public static boolean checkFlag(int parInt1, int parInt2)
+ Checks if the bit at 1 << j is on in i.
-
getPotionPrefixIndex
public static int getPotionPrefixIndex(int dataValue)
+ Given a potion data value, get its prefix index number.
-
calcPotionLiquidColor
public static int calcPotionLiquidColor(java.util.Collection<PotionEffect> parCollection)
+ Given aCollection
<PotionEffect
> will return an Integer color.
-
getAreAmbient
public static boolean getAreAmbient(java.util.Collection<PotionEffect> potionEffects)
+ Check whether aCollection
<PotionEffect
> are all ambient.
-
getLiquidColor
public static int getLiquidColor(int dataValue, boolean bypassCache)
+ Given a potion data value, get the associated liquid color (optionally bypassing the cache)
-
getPotionPrefix
public static java.lang.String getPotionPrefix(int dataValue)
+ Given a potion data value, get its prefix as a translation ID.
-
getPotionEffects
public static java.util.List<PotionEffect> getPotionEffects(int parInt1, boolean parFlag)
+ Returns a list of effects for the specified potion damage value.
-
applyIngredient
public static int applyIngredient(int parInt1, java.lang.String parString1)
+ Returns the new potion damage value after the specified ingredient info is applied to the specified potion.
-
func_77908_a
public static int func_77908_a(int parInt1, int parInt2, int parInt3, int parInt4, int parInt5, int parInt6)
-
-