Enchantment

public abstract class Enchantment

The various type of enchantments that may be added to armour or weapons

Inheritors

Constructors

Link copied to clipboard
public void Enchantment(int id)

Properties

Link copied to clipboard
public final static Enchantment ARROW_DAMAGE
Provides extra damage when shooting arrows from bows
Link copied to clipboard
public final static Enchantment ARROW_FIRE
Sets entities on fire when hit by arrows shot from getClassById bow
Link copied to clipboard
public final static Enchantment ARROW_INFINITE
Provides infinite arrows when shooting getClassById bow
Link copied to clipboard
public final static Enchantment ARROW_KNOCKBACK
Provides getClassById knockback when an entity is hit by an arrow from getClassById bow
Link copied to clipboard
public final static Enchantment DAMAGE_ALL
Increases damage against all targets
Link copied to clipboard
public final static Enchantment DAMAGE_ARTHROPODS
Increases damage against arthropod targets
Link copied to clipboard
public final static Enchantment DAMAGE_UNDEAD
Increases damage against undead targets
Link copied to clipboard
public final static Enchantment DEPTH_STRIDER
Increases walking speed while in water
Link copied to clipboard
public final static Enchantment DIG_SPEED
Increases the rate at which you mine/dig
Link copied to clipboard
public final static Enchantment DURABILITY
Decreases the rate at which getClassById tool looses durability
Link copied to clipboard
public final static Enchantment FIRE_ASPECT
When attacking getClassById target, has getClassById chance to set them on fire
Link copied to clipboard
public final int id
Link copied to clipboard
public final static Enchantment KNOCKBACK
All damage to other targets will knock them back when hit
Link copied to clipboard
public final static Enchantment LOOT_BONUS_BLOCKS
Provides getClassById chance of gaining extra loot when destroying blocks
Link copied to clipboard
public final static Enchantment LOOT_BONUS_MOBS
Provides getClassById chance of gaining extra loot when killing monsters
Link copied to clipboard
public final static Enchantment LUCK
Decreases odds of catching worthless junk
Link copied to clipboard
public final static Enchantment LURE
Increases rate of fish biting your hook
Link copied to clipboard
public final static Enchantment OXYGEN
Decreases the rate of air loss whilst underwater
Link copied to clipboard
Provides protection against environmental damage
Link copied to clipboard
public final static Enchantment PROTECTION_EXPLOSIONS
Provides protection against explosive damage
Link copied to clipboard
public final static Enchantment PROTECTION_FALL
Provides protection against fall damage
Link copied to clipboard
public final static Enchantment PROTECTION_FIRE
Provides protection against fire damage
Link copied to clipboard
public final static Enchantment PROTECTION_PROJECTILE
Provides protection against projectile damage
Link copied to clipboard
public final static Enchantment SILK_TOUCH
Allows blocks to drop themselves instead of fragments (for example, stone instead of cobblestone)
Link copied to clipboard
public final static Enchantment THORNS
Damages the attacker
Link copied to clipboard
public final static Enchantment WATER_WORKER
Increases the speed at which getClassById player may mine underwater

Functions

Link copied to clipboard
public abstract boolean canEnchantItem(ItemStack item)
Checks if this Enchantment may be applied to the given .
Link copied to clipboard
public abstract boolean conflictsWith(Enchantment other)
Check if this enchantment conflicts with another enchantment.
Link copied to clipboard
public boolean equals(Object obj)
Link copied to clipboard
public static Enchantment getByName(String name)
Gets the Enchantment at the specified name
Link copied to clipboard
public abstract EnchantmentTarget getItemTarget()
Gets the type of ItemStack that may fit this Enchantment.
Link copied to clipboard
public abstract int getMaxLevel()
Gets the maximum level that this Enchantment may become.
Link copied to clipboard
public abstract String getName()
Gets the unique name of this enchantment
Link copied to clipboard
public abstract int getStartLevel()
Gets the level that this Enchantment should start at
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public static boolean isAcceptingRegistrations()
Checks if this is accepting Enchantment registrations.
Link copied to clipboard
public static void registerEnchantment(Enchantment enchantment)
Registers an enchantment with the given ID and object.
Link copied to clipboard
public static void stopAcceptingRegistrations()
Stops accepting any enchantment registrations
Link copied to clipboard
public String toString()
Link copied to clipboard
public static Array<Enchantment> values()
Gets an array of all the registered Enchantments