YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.enchantment.EnchantmentHelper Class Reference

Static Public Member Functions

static int getEnchantmentLevel (int par0, ItemStack par1ItemStack)
 
static Map getEnchantments (ItemStack par0ItemStack)
 
static void setEnchantments (Map par0Map, ItemStack par1ItemStack)
 
static int getMaxEnchantmentLevel (int par0, ItemStack[] par1ArrayOfItemStack)
 
static int getEnchantmentModifierDamage (ItemStack[] par0ArrayOfItemStack, DamageSource par1DamageSource)
 
static int getEnchantmentModifierLiving (EntityLiving par0EntityLiving, EntityLiving par1EntityLiving)
 
static int getKnockbackModifier (EntityLiving par0EntityLiving, EntityLiving par1EntityLiving)
 
static int getFireAspectModifier (EntityLiving par0EntityLiving)
 
static int getRespiration (EntityLiving par0EntityLiving)
 
static int getEfficiencyModifier (EntityLiving par0EntityLiving)
 
static boolean getSilkTouchModifier (EntityLiving par0EntityLiving)
 
static int getFortuneModifier (EntityLiving par0EntityLiving)
 
static int getLootingModifier (EntityLiving par0EntityLiving)
 
static boolean getAquaAffinityModifier (EntityLiving par0EntityLiving)
 
static int func_92098_i (EntityLiving par0EntityLiving)
 
static ItemStack func_92099_a (Enchantment par0Enchantment, EntityLiving par1EntityLiving)
 
static int calcItemStackEnchantability (Random par0Random, int par1, int par2, ItemStack par3ItemStack)
 
static ItemStack addRandomEnchantment (Random par0Random, ItemStack par1ItemStack, int par2)
 
static List buildEnchantmentList (Random par0Random, ItemStack par1ItemStack, int par2)
 
static Map mapEnchantmentData (int par0, ItemStack par1ItemStack)
 

Member Function Documentation

static ItemStack net.minecraft.enchantment.EnchantmentHelper.addRandomEnchantment ( Random  par0Random,
ItemStack  par1ItemStack,
int  par2 
)
static

Adds a random enchantment to the specified item. Args: random, itemStack, enchantabilityLevel

static List net.minecraft.enchantment.EnchantmentHelper.buildEnchantmentList ( Random  par0Random,
ItemStack  par1ItemStack,
int  par2 
)
static

Create a list of random EnchantmentData (enchantments) that can be added together to the ItemStack, the 3rd parameter is the total enchantability level.

static int net.minecraft.enchantment.EnchantmentHelper.calcItemStackEnchantability ( Random  par0Random,
int  par1,
int  par2,
ItemStack  par3ItemStack 
)
static

Returns the enchantability of itemstack, it's uses a singular formula for each index (2nd parameter: 0, 1 and 2), cutting to the max enchantability power of the table (3rd parameter)

static int net.minecraft.enchantment.EnchantmentHelper.func_92098_i ( EntityLiving  par0EntityLiving)
static
static ItemStack net.minecraft.enchantment.EnchantmentHelper.func_92099_a ( Enchantment  par0Enchantment,
EntityLiving  par1EntityLiving 
)
static
static boolean net.minecraft.enchantment.EnchantmentHelper.getAquaAffinityModifier ( EntityLiving  par0EntityLiving)
static

Returns the aqua affinity status of enchantments on current equipped item of player.

static int net.minecraft.enchantment.EnchantmentHelper.getEfficiencyModifier ( EntityLiving  par0EntityLiving)
static

Return the extra efficiency of tools based on enchantments on equipped player item.

static int net.minecraft.enchantment.EnchantmentHelper.getEnchantmentLevel ( int  par0,
ItemStack  par1ItemStack 
)
static

Returns the level of enchantment on the ItemStack passed.

static int net.minecraft.enchantment.EnchantmentHelper.getEnchantmentModifierDamage ( ItemStack[]  par0ArrayOfItemStack,
DamageSource  par1DamageSource 
)
static

Returns the modifier of protection enchantments on armors equipped on player.

static int net.minecraft.enchantment.EnchantmentHelper.getEnchantmentModifierLiving ( EntityLiving  par0EntityLiving,
EntityLiving  par1EntityLiving 
)
static

Return the (magic) extra damage of the enchantments on player equipped item.

static Map net.minecraft.enchantment.EnchantmentHelper.getEnchantments ( ItemStack  par0ItemStack)
static

Return the enchantments for the specified stack.

static int net.minecraft.enchantment.EnchantmentHelper.getFireAspectModifier ( EntityLiving  par0EntityLiving)
static
static int net.minecraft.enchantment.EnchantmentHelper.getFortuneModifier ( EntityLiving  par0EntityLiving)
static

Returns the fortune enchantment modifier of the current equipped item of player.

static int net.minecraft.enchantment.EnchantmentHelper.getKnockbackModifier ( EntityLiving  par0EntityLiving,
EntityLiving  par1EntityLiving 
)
static

Returns the knockback value of enchantments on equipped player item.

static int net.minecraft.enchantment.EnchantmentHelper.getLootingModifier ( EntityLiving  par0EntityLiving)
static

Returns the looting enchantment modifier of the current equipped item of player.

static int net.minecraft.enchantment.EnchantmentHelper.getMaxEnchantmentLevel ( int  par0,
ItemStack[]  par1ArrayOfItemStack 
)
static

Returns the biggest level of the enchantment on the array of ItemStack passed.

static int net.minecraft.enchantment.EnchantmentHelper.getRespiration ( EntityLiving  par0EntityLiving)
static

Returns the 'Water Breathing' modifier of enchantments on player equipped armors.

static boolean net.minecraft.enchantment.EnchantmentHelper.getSilkTouchModifier ( EntityLiving  par0EntityLiving)
static

Returns the silk touch status of enchantments on current equipped item of player.

static Map net.minecraft.enchantment.EnchantmentHelper.mapEnchantmentData ( int  par0,
ItemStack  par1ItemStack 
)
static

Creates a 'Map' of EnchantmentData (enchantments) possible to add on the ItemStack and the enchantability level passed.

static void net.minecraft.enchantment.EnchantmentHelper.setEnchantments ( Map  par0Map,
ItemStack  par1ItemStack 
)
static

Set the enchantments for the specified stack.


The documentation for this class was generated from the following file: