YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.enchantment.EnchantmentProtection Class Reference
Inheritance diagram for net.minecraft.enchantment.EnchantmentProtection:
net.minecraft.enchantment.Enchantment

Public Member Functions

 EnchantmentProtection (int par1, int par2, int par3)
 
int getMinEnchantability (int par1)
 
int getMaxEnchantability (int par1)
 
int getMaxLevel ()
 
int calcModifierDamage (int par1, DamageSource par2DamageSource)
 
String getName ()
 
boolean canApplyTogether (Enchantment par1Enchantment)
 
- Public Member Functions inherited from net.minecraft.enchantment.Enchantment
int getWeight ()
 
int getMinLevel ()
 
int getMaxLevel ()
 
int getMinEnchantability (int par1)
 
int getMaxEnchantability (int par1)
 
int calcModifierDamage (int par1, DamageSource par2DamageSource)
 
int calcModifierLiving (int par1, EntityLiving par2EntityLiving)
 
boolean canApplyTogether (Enchantment par1Enchantment)
 
Enchantment setName (String par1Str)
 
String getName ()
 
String getTranslatedName (int par1)
 
boolean canApply (ItemStack par1ItemStack)
 
boolean canApplyAtEnchantingTable (ItemStack stack)
 

Static Public Member Functions

static int func_92093_a (Entity par0Entity, int par1)
 
static double func_92092_a (Entity par0Entity, double par1)
 
- Static Public Member Functions inherited from net.minecraft.enchantment.Enchantment
static void addToBookList (Enchantment enchantment)
 

Public Attributes

final int protectionType
 
- Public Attributes inherited from net.minecraft.enchantment.Enchantment
final int effectId
 
EnumEnchantmentType type
 

Additional Inherited Members

- Static Public Attributes inherited from net.minecraft.enchantment.Enchantment
static final Enchantment[] enchantmentsList = new Enchantment[256]
 
static final Enchantment[] field_92090_c
 
static final Enchantment protection = new EnchantmentProtection(0, 10, 0)
 
static final Enchantment fireProtection = new EnchantmentProtection(1, 5, 1)
 
static final Enchantment featherFalling = new EnchantmentProtection(2, 5, 2)
 
static final Enchantment blastProtection = new EnchantmentProtection(3, 2, 3)
 
static final Enchantment projectileProtection = new EnchantmentProtection(4, 5, 4)
 
static final Enchantment respiration = new EnchantmentOxygen(5, 2)
 
static final Enchantment aquaAffinity = new EnchantmentWaterWorker(6, 2)
 
static final Enchantment thorns = new EnchantmentThorns(7, 1)
 
static final Enchantment sharpness = new EnchantmentDamage(16, 10, 0)
 
static final Enchantment smite = new EnchantmentDamage(17, 5, 1)
 
static final Enchantment baneOfArthropods = new EnchantmentDamage(18, 5, 2)
 
static final Enchantment knockback = new EnchantmentKnockback(19, 5)
 
static final Enchantment fireAspect = new EnchantmentFireAspect(20, 2)
 
static final Enchantment looting = new EnchantmentLootBonus(21, 2, EnumEnchantmentType.weapon)
 
static final Enchantment efficiency = new EnchantmentDigging(32, 10)
 
static final Enchantment silkTouch = new EnchantmentUntouching(33, 1)
 
static final Enchantment unbreaking = new EnchantmentDurability(34, 5)
 
static final Enchantment fortune = new EnchantmentLootBonus(35, 2, EnumEnchantmentType.digger)
 
static final Enchantment power = new EnchantmentArrowDamage(48, 10)
 
static final Enchantment punch = new EnchantmentArrowKnockback(49, 2)
 
static final Enchantment flame = new EnchantmentArrowFire(50, 2)
 
static final Enchantment infinity = new EnchantmentArrowInfinite(51, 1)
 
- Protected Member Functions inherited from net.minecraft.enchantment.Enchantment
 Enchantment (int par1, int par2, EnumEnchantmentType par3EnumEnchantmentType)
 
- Protected Attributes inherited from net.minecraft.enchantment.Enchantment
String name
 

Constructor & Destructor Documentation

net.minecraft.enchantment.EnchantmentProtection.EnchantmentProtection ( int  par1,
int  par2,
int  par3 
)

Member Function Documentation

int net.minecraft.enchantment.EnchantmentProtection.calcModifierDamage ( int  par1,
DamageSource  par2DamageSource 
)

Calculates de damage protection of the enchantment based on level and damage source passed.

boolean net.minecraft.enchantment.EnchantmentProtection.canApplyTogether ( Enchantment  par1Enchantment)

Determines if the enchantment passed can be applyied together with this enchantment.

static double net.minecraft.enchantment.EnchantmentProtection.func_92092_a ( Entity  par0Entity,
double  par1 
)
static
static int net.minecraft.enchantment.EnchantmentProtection.func_92093_a ( Entity  par0Entity,
int  par1 
)
static
int net.minecraft.enchantment.EnchantmentProtection.getMaxEnchantability ( int  par1)

Returns the maximum value of enchantability nedded on the enchantment level passed.

int net.minecraft.enchantment.EnchantmentProtection.getMaxLevel ( )

Returns the maximum level that the enchantment can have.

int net.minecraft.enchantment.EnchantmentProtection.getMinEnchantability ( int  par1)

Returns the minimal value of enchantability needed on the enchantment level passed.

String net.minecraft.enchantment.EnchantmentProtection.getName ( )

Return the name of key in translation table of this enchantment.

Member Data Documentation

final int net.minecraft.enchantment.EnchantmentProtection.protectionType

Defines the type of protection of the enchantment, 0 = all, 1 = fire, 2 = fall (feather fall), 3 = explosion and 4 = projectile.


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