Class 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)
    • Constructor Detail

      • PotionHelper

        public PotionHelper()
    • 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 a Collection<PotionEffect> will return an Integer color.
      • getAreAmbient

        public static boolean getAreAmbient​(java.util.Collection<PotionEffect> potionEffects)
        + Check whether a Collection<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)