Files
Paper/paper-api/src/main/java/org/bukkit/enchantments/EnchantmentWrapper.java
2023-12-06 03:40:00 +11:00

24 lines
538 B
Java

package org.bukkit.enchantments;
import org.jetbrains.annotations.NotNull;
/**
* A simple wrapper for ease of selecting {@link Enchantment}s
* @deprecated only for backwards compatibility, EnchantmentWrapper is no longer used.
*/
@Deprecated
public abstract class EnchantmentWrapper extends Enchantment {
protected EnchantmentWrapper() {
}
/**
* Gets the enchantment bound to this wrapper
*
* @return Enchantment
*/
@NotNull
public Enchantment getEnchantment() {
return this;
}
}