|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.enchantment.Enchantment
public abstract class Enchantment
Field Summary | |
---|---|
static Enchantment |
aquaAffinity
Increases underwater mining rate |
static Enchantment |
baneOfArthropods
Extra damage to spiders, cave spiders and silverfish |
static Enchantment |
blastProtection
Protection against explosions |
int |
effectId
|
static Enchantment |
efficiency
Faster resource gathering while in use |
static Enchantment[] |
enchantmentsList
|
static Enchantment |
featherFalling
Less fall damage |
static Enchantment[] |
field_92038_c
|
static Enchantment |
field_92039_k
|
static Enchantment |
fireAspect
Lights mobs on fire |
static Enchantment |
fireProtection
Protection against fire |
static Enchantment |
flame
Flame enchantment for bows. |
static Enchantment |
fortune
Can multiply the drop rate of items from blocks |
static Enchantment |
infinity
Infinity enchantment for bows. |
static Enchantment |
knockback
Knocks mob and players backwards upon hit |
static Enchantment |
looting
Mobs have a chance to drop more loot |
static Enchantment |
power
Power enchantment for bows, add's extra damage to arrows. |
static Enchantment |
projectileProtection
Protection against projectile entities (e.g. |
static Enchantment |
protection
Converts environmental damage to armour damage |
static Enchantment |
punch
Knockback enchantments for bows, the arrows will knockback the target when hit. |
static Enchantment |
respiration
Decreases the rate of air loss underwater; increases time between damage while suffocating |
static Enchantment |
sharpness
Extra damage to mobs |
static Enchantment |
silkTouch
Blocks mined will drop themselves, even if it should drop something else (e.g. |
static Enchantment |
smite
Extra damage to zombies, zombie pigmen and skeletons |
EnumEnchantmentType |
type
The EnumEnchantmentType given to this Enchantment. |
static Enchantment |
unbreaking
Sometimes, the tool's durability will not be spent when the tool is used |
Method Summary | |
---|---|
static void |
addToBookList(Enchantment enchantment)
Add to the list of enchantments applicable by the anvil from a book |
int |
calcModifierDamage(int par1,
DamageSource par2DamageSource)
Calculates de damage protection of the enchantment based on level and damage source passed. |
int |
calcModifierLiving(int par1,
EntityLiving par2EntityLiving)
Calculates de (magic) damage done by the enchantment on a living entity based on level and entity passed. |
boolean |
canApplyAtEnchantingTable(ItemStack stack)
This applies specifically to applying at the enchanting table. |
boolean |
canApplyTogether(Enchantment par1Enchantment)
Determines if the enchantment passed can be applyied together with this enchantment. |
boolean |
func_92037_a(ItemStack par1ItemStack)
|
int |
getMaxEnchantability(int par1)
Returns the maximum value of enchantability nedded on the enchantment level passed. |
int |
getMaxLevel()
Returns the maximum level that the enchantment can have. |
int |
getMinEnchantability(int par1)
Returns the minimal value of enchantability needed on the enchantment level passed. |
int |
getMinLevel()
Returns the minimum level that the enchantment can have. |
String |
getName()
Return the name of key in translation table of this enchantment. |
String |
getTranslatedName(int par1)
Returns the correct traslated name of the enchantment and the level in roman numbers. |
int |
getWeight()
|
Enchantment |
setName(String par1Str)
Sets the enchantment name |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Enchantment[] enchantmentsList
public static final Enchantment[] field_92038_c
public static final Enchantment protection
public static final Enchantment fireProtection
public static final Enchantment featherFalling
public static final Enchantment blastProtection
public static final Enchantment projectileProtection
public static final Enchantment respiration
public static final Enchantment aquaAffinity
public static final Enchantment field_92039_k
public static final Enchantment sharpness
public static final Enchantment smite
public static final Enchantment baneOfArthropods
public static final Enchantment knockback
public static final Enchantment fireAspect
public static final Enchantment looting
public static final Enchantment efficiency
public static final Enchantment silkTouch
public static final Enchantment unbreaking
public static final Enchantment fortune
public static final Enchantment power
public static final Enchantment punch
public static final Enchantment flame
public static final Enchantment infinity
public final int effectId
public EnumEnchantmentType type
Method Detail |
---|
public int getWeight()
public int getMinLevel()
public int getMaxLevel()
public int getMinEnchantability(int par1)
public int getMaxEnchantability(int par1)
public int calcModifierDamage(int par1, DamageSource par2DamageSource)
public int calcModifierLiving(int par1, EntityLiving par2EntityLiving)
public boolean canApplyTogether(Enchantment par1Enchantment)
public Enchantment setName(String par1Str)
public String getName()
public String getTranslatedName(int par1)
public boolean func_92037_a(ItemStack par1ItemStack)
public boolean canApplyAtEnchantingTable(ItemStack stack)
func_92037_a(ItemStack)
applies for all possible enchantments.
stack
-
public static void addToBookList(Enchantment enchantment)
enchantment
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |