Class EnchantmentWrapper
java.lang.Object
org.bukkit.enchantments.Enchantment
org.bukkit.enchantments.EnchantmentWrapper
- All Implemented Interfaces:
Keyed, Translatable, Keyed, Translatable
@Deprecated(since="1.20.3",
forRemoval=true)
public abstract class EnchantmentWrapper
extends Enchantment
Deprecated, for removal: This API element is subject to removal in a future version.
only for backwards compatibility, EnchantmentWrapper is no longer used.
A simple wrapper for ease of selecting
Enchantments-
Field Summary
Fields inherited from class Enchantment
AQUA_AFFINITY, BANE_OF_ARTHROPODS, BINDING_CURSE, BLAST_PROTECTION, BREACH, CHANNELING, DENSITY, DEPTH_STRIDER, EFFICIENCY, FEATHER_FALLING, FIRE_ASPECT, FIRE_PROTECTION, FLAME, FORTUNE, FROST_WALKER, IMPALING, INFINITY, KNOCKBACK, LOOTING, LOYALTY, LUCK_OF_THE_SEA, LUNGE, LURE, MENDING, MULTISHOT, PIERCING, POWER, PROJECTILE_PROTECTION, PROTECTION, PUNCH, QUICK_CHARGE, RESPIRATION, RIPTIDE, SHARPNESS, SILK_TOUCH, SMITE, SOUL_SPEED, SWEEPING_EDGE, SWIFT_SNEAK, THORNS, UNBREAKING, VANISHING_CURSE, WIND_BURST -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Gets the enchantment bound to this wrapperMethods inherited from class Enchantment
canEnchantItem, conflictsWith, description, displayName, getActiveSlotGroups, getActiveSlots, getAnvilCost, getByKey, getByName, getDamageIncrease, getDamageIncrease, getExclusiveWith, getItemTarget, getMaxLevel, getMaxModifiedCost, getMinModifiedCost, getName, getPrimaryItems, getRarity, getStartLevel, getSupportedItems, getWeight, isCursed, isDiscoverable, isTradeable, isTreasure, translationKey, valuesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Translatable
getTranslationKey
-
Constructor Details
-
EnchantmentWrapper
protected EnchantmentWrapper()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getEnchantment
Deprecated, for removal: This API element is subject to removal in a future version.Gets the enchantment bound to this wrapper- Returns:
- Enchantment
-