public class EnchantmentHelper
extends java.lang.Object
Constructor and Description |
---|
EnchantmentHelper() |
Modifier and Type | Method and Description |
---|---|
static ItemStack |
addRandomEnchantment(java.util.Random par0Random,
ItemStack par1ItemStack,
int par2) |
static java.util.List |
buildEnchantmentList(java.util.Random par0Random,
ItemStack par1ItemStack,
int par2) |
static int |
calcItemStackEnchantability(java.util.Random par0Random,
int par1,
int par2,
ItemStack par3ItemStack) |
static void |
func_151384_a(EntityLivingBase p_151384_0_,
Entity p_151384_1_) |
static void |
func_151385_b(EntityLivingBase p_151385_0_,
Entity p_151385_1_) |
static int |
func_151386_g(EntityLivingBase p_151386_0_) |
static int |
func_151387_h(EntityLivingBase p_151387_0_) |
static ItemStack |
func_92099_a(Enchantment par0Enchantment,
EntityLivingBase par1EntityLivingBase) |
static boolean |
getAquaAffinityModifier(EntityLivingBase par0EntityLivingBase) |
static int |
getEfficiencyModifier(EntityLivingBase par0EntityLivingBase) |
static int |
getEnchantmentLevel(int par0,
ItemStack par1ItemStack) |
static int |
getEnchantmentModifierDamage(ItemStack[] par0ArrayOfItemStack,
DamageSource par1DamageSource) |
static float |
getEnchantmentModifierLiving(EntityLivingBase par0EntityLivingBase,
EntityLivingBase par1EntityLivingBase) |
static java.util.Map |
getEnchantments(ItemStack par0ItemStack) |
static int |
getFireAspectModifier(EntityLivingBase par0EntityLivingBase) |
static int |
getFortuneModifier(EntityLivingBase par0EntityLivingBase) |
static int |
getKnockbackModifier(EntityLivingBase par0EntityLivingBase,
EntityLivingBase par1EntityLivingBase) |
static int |
getLootingModifier(EntityLivingBase par0EntityLivingBase) |
static int |
getMaxEnchantmentLevel(int par0,
ItemStack[] par1ArrayOfItemStack) |
static int |
getRespiration(EntityLivingBase par0EntityLivingBase) |
static boolean |
getSilkTouchModifier(EntityLivingBase par0EntityLivingBase) |
static java.util.Map |
mapEnchantmentData(int par0,
ItemStack par1ItemStack) |
static void |
setEnchantments(java.util.Map par0Map,
ItemStack par1ItemStack) |
public static int getEnchantmentLevel(int par0, ItemStack par1ItemStack)
public static java.util.Map getEnchantments(ItemStack par0ItemStack)
public static void setEnchantments(java.util.Map par0Map, ItemStack par1ItemStack)
public static int getMaxEnchantmentLevel(int par0, ItemStack[] par1ArrayOfItemStack)
public static int getEnchantmentModifierDamage(ItemStack[] par0ArrayOfItemStack, DamageSource par1DamageSource)
public static float getEnchantmentModifierLiving(EntityLivingBase par0EntityLivingBase, EntityLivingBase par1EntityLivingBase)
public static void func_151384_a(EntityLivingBase p_151384_0_, Entity p_151384_1_)
public static void func_151385_b(EntityLivingBase p_151385_0_, Entity p_151385_1_)
public static int getKnockbackModifier(EntityLivingBase par0EntityLivingBase, EntityLivingBase par1EntityLivingBase)
public static int getFireAspectModifier(EntityLivingBase par0EntityLivingBase)
public static int getRespiration(EntityLivingBase par0EntityLivingBase)
public static int getEfficiencyModifier(EntityLivingBase par0EntityLivingBase)
public static boolean getSilkTouchModifier(EntityLivingBase par0EntityLivingBase)
public static int getFortuneModifier(EntityLivingBase par0EntityLivingBase)
public static int func_151386_g(EntityLivingBase p_151386_0_)
public static int func_151387_h(EntityLivingBase p_151387_0_)
public static int getLootingModifier(EntityLivingBase par0EntityLivingBase)
public static boolean getAquaAffinityModifier(EntityLivingBase par0EntityLivingBase)
public static ItemStack func_92099_a(Enchantment par0Enchantment, EntityLivingBase par1EntityLivingBase)
public static int calcItemStackEnchantability(java.util.Random par0Random, int par1, int par2, ItemStack par3ItemStack)
public static ItemStack addRandomEnchantment(java.util.Random par0Random, ItemStack par1ItemStack, int par2)
public static java.util.List buildEnchantmentList(java.util.Random par0Random, ItemStack par1ItemStack, int par2)
public static java.util.Map mapEnchantmentData(int par0, ItemStack par1ItemStack)