|
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) |
|
net.minecraft.enchantment.Enchantment.Enchantment |
( |
int |
par1, |
|
|
int |
par2, |
|
|
EnumEnchantmentType |
par3EnumEnchantmentType |
|
) |
| |
|
protected |
static void net.minecraft.enchantment.Enchantment.addToBookList |
( |
Enchantment |
enchantment) | |
|
|
static |
Add to the list of enchantments applicable by the anvil from a book
- Parameters
-
int net.minecraft.enchantment.Enchantment.calcModifierDamage |
( |
int |
par1, |
|
|
DamageSource |
par2DamageSource |
|
) |
| |
Calculates de damage protection of the enchantment based on level and damage source passed.
int net.minecraft.enchantment.Enchantment.calcModifierLiving |
( |
int |
par1, |
|
|
EntityLiving |
par2EntityLiving |
|
) |
| |
Calculates de (magic) damage done by the enchantment on a living entity based on level and entity passed.
boolean net.minecraft.enchantment.Enchantment.canApply |
( |
ItemStack |
par1ItemStack) | |
|
boolean net.minecraft.enchantment.Enchantment.canApplyAtEnchantingTable |
( |
ItemStack |
stack) | |
|
This applies specifically to applying at the enchanting table. The other method func_92037_a(ItemStack) applies for all possible enchantments.
- Parameters
-
- Returns
boolean net.minecraft.enchantment.Enchantment.canApplyTogether |
( |
Enchantment |
par1Enchantment) | |
|
Determines if the enchantment passed can be applyied together with this enchantment.
int net.minecraft.enchantment.Enchantment.getMaxEnchantability |
( |
int |
par1) | |
|
Returns the maximum value of enchantability nedded on the enchantment level passed.
int net.minecraft.enchantment.Enchantment.getMaxLevel |
( |
) | |
|
Returns the maximum level that the enchantment can have.
int net.minecraft.enchantment.Enchantment.getMinEnchantability |
( |
int |
par1) | |
|
Returns the minimal value of enchantability needed on the enchantment level passed.
int net.minecraft.enchantment.Enchantment.getMinLevel |
( |
) | |
|
Returns the minimum level that the enchantment can have.
String net.minecraft.enchantment.Enchantment.getName |
( |
) | |
|
Return the name of key in translation table of this enchantment.
String net.minecraft.enchantment.Enchantment.getTranslatedName |
( |
int |
par1) | |
|
Returns the correct traslated name of the enchantment and the level in roman numbers.
int net.minecraft.enchantment.Enchantment.getWeight |
( |
) | |
|
Enchantment net.minecraft.enchantment.Enchantment.setName |
( |
String |
par1Str) | |
|
Sets the enchantment name
Increases underwater mining rate
Extra damage to spiders, cave spiders and silverfish
Protection against explosions
final int net.minecraft.enchantment.Enchantment.effectId |
Faster resource gathering while in use
final Enchantment [] net.minecraft.enchantment.Enchantment.field_92090_c |
|
static |
Flame enchantment for bows. Arrows fired by the bow will be on fire. Any target hit will also set on fire.
Can multiply the drop rate of items from blocks
Infinity enchantment for bows. The bow will not consume arrows anymore, but will still required at least one arrow on inventory use the bow.
Knocks mob and players backwards upon hit
Mobs have a chance to drop more loot
String net.minecraft.enchantment.Enchantment.name |
|
protected |
Used in localisation and stats.
Power enchantment for bows, add's extra damage to arrows.
Protection against projectile entities (e.g. arrows)
Converts environmental damage to armour damage
Knockback enchantments for bows, the arrows will knockback the target when hit.
Decreases the rate of air loss underwater; increases time between damage while suffocating
Blocks mined will drop themselves, even if it should drop something else (e.g. stone will drop stone, not cobblestone)
Extra damage to zombies, zombie pigmen and skeletons
Sometimes, the tool's durability will not be spent when the tool is used
The documentation for this class was generated from the following file:
- C:/Users/LazDude/Downloads/MinecraftModding/YATS/forge/mcp/src/minecraft/net/minecraft/enchantment/Enchantment.java