程序包 org.bukkit.util
接口 OldEnum<T extends OldEnum<T>>
- 类型参数:
T
- the type of the old enum.
- 所有超级接口:
Comparable<T>
- 所有已知子接口:
Cat.Type
,Frog.Variant
,MapCursor.Type
,Villager.Profession
,Villager.Type
@Internal
@Deprecated(since="1.21")
public interface OldEnum<T extends OldEnum<T>>
extends Comparable<T>
已过时。
only for backwards compatibility.
Class which holds common methods which are present in an enum.
-
方法概要
-
方法详细资料
-
compareTo
已过时。only for backwards compatibility, old enums can not be compared.- 指定者:
compareTo
在接口中Comparable<T extends OldEnum<T>>
- 参数:
other
- to compare to.- 返回:
- negative if this old enum is lower, zero if equal and positive if higher than the given old enum.
-
name
已过时。only for backwards compatibility.- 返回:
- the name of the old enum.
-
ordinal
已过时。only for backwards compatibility, it is not guaranteed that an old enum always has the same ordinal.- 返回:
- the ordinal of the old enum.
-