Added comment for why EcoEnchant#getName isn't deprecated.

This commit is contained in:
Auxilor 2020-12-28 22:43:29 +00:00
parent e238b91731
commit e86c7d67fa

View File

@ -40,7 +40,7 @@ import java.util.Set;
import java.util.stream.Collectors;
@EqualsAndHashCode(callSuper = false)
@SuppressWarnings("unchecked")
@SuppressWarnings({"unchecked", "deprecation"})
public abstract class EcoEnchant extends Enchantment implements Listener, Registerable, Watcher {
/**
* Instance of EcoEnchants for enchantments to be able to access.
@ -288,6 +288,8 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Regist
/**
* Get the display name of the enchantment.
* <p>
* Not deprecated, unlike superclass.
*
* @return The name.
*/