Package net.minecraft.src
Class Enchantment
- java.lang.Object
-
- net.minecraft.src.Enchantment
-
- Direct Known Subclasses:
EnchantmentArrowDamage
,EnchantmentArrowFire
,EnchantmentArrowInfinite
,EnchantmentArrowKnockback
,EnchantmentDamage
,EnchantmentDigging
,EnchantmentDurability
,EnchantmentFireAspect
,EnchantmentKnockback
,EnchantmentLootBonus
,EnchantmentOxygen
,EnchantmentProtection
,EnchantmentUntouching
,EnchantmentWaterWorker
public abstract class Enchantment extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static Enchantment
aquaAffinity
static Enchantment
baneOfArthropods
static Enchantment
blastProtection
int
effectId
static Enchantment
efficiency
static Enchantment[]
enchantmentsList
static Enchantment
featherFalling
static Enchantment
fireAspect
static Enchantment
fireProtection
static Enchantment
flame
static Enchantment
fortune
static Enchantment
infinity
static Enchantment
knockback
static Enchantment
looting
protected java.lang.String
name
static Enchantment
power
static Enchantment
projectileProtection
static Enchantment
protection
static Enchantment
punch
static Enchantment
respiration
static Enchantment
sharpness
static Enchantment
silkTouch
static Enchantment
smite
EnumEnchantmentType
type
static Enchantment
unbreaking
-
Constructor Summary
Constructors Modifier Constructor Description protected
Enchantment(int var1, int var2, EnumEnchantmentType var3)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
calcModifierDamage(int var1, DamageSource var2)
int
calcModifierLiving(int var1, LivingEntity var2)
boolean
canApplyTogether(Enchantment var1)
int
getMaxEnchantability(int var1)
int
getMaxLevel()
int
getMinEnchantability(int var1)
int
getMinLevel()
@Client java.lang.String
getName()
@Client java.lang.String
getTranslatedName(int var1)
int
getWeight()
Enchantment
setName(java.lang.String var1)
-
-
-
Field Detail
-
enchantmentsList
public static final Enchantment[] enchantmentsList
-
protection
public static final Enchantment protection
-
fireProtection
public static final Enchantment fireProtection
-
featherFalling
public static final Enchantment featherFalling
-
blastProtection
public static final Enchantment blastProtection
-
projectileProtection
public static final Enchantment projectileProtection
-
respiration
public static final Enchantment respiration
-
aquaAffinity
public static final Enchantment aquaAffinity
-
sharpness
public static final Enchantment sharpness
-
smite
public static final Enchantment smite
-
baneOfArthropods
public static final Enchantment baneOfArthropods
-
knockback
public static final Enchantment knockback
-
fireAspect
public static final Enchantment fireAspect
-
looting
public static final Enchantment looting
-
efficiency
public static final Enchantment efficiency
-
silkTouch
public static final Enchantment silkTouch
-
unbreaking
public static final Enchantment unbreaking
-
fortune
public static final Enchantment fortune
-
power
public static final Enchantment power
-
punch
public static final Enchantment punch
-
flame
public static final Enchantment flame
-
infinity
public static final Enchantment infinity
-
effectId
public final int effectId
-
type
public EnumEnchantmentType type
-
name
protected java.lang.String name
-
-
Constructor Detail
-
Enchantment
protected Enchantment(int var1, int var2, EnumEnchantmentType var3)
-
-
Method Detail
-
getWeight
public int getWeight()
-
getMinLevel
public int getMinLevel()
-
getMaxLevel
public int getMaxLevel()
-
getMinEnchantability
public int getMinEnchantability(int var1)
-
getMaxEnchantability
public int getMaxEnchantability(int var1)
-
calcModifierDamage
public int calcModifierDamage(int var1, DamageSource var2)
-
calcModifierLiving
public int calcModifierLiving(int var1, LivingEntity var2)
-
canApplyTogether
public boolean canApplyTogether(Enchantment var1)
-
setName
public Enchantment setName(java.lang.String var1)
-
-