Package org.bukkit.util
Interface OldEnum<T extends OldEnum<T>>
- Type Parameters:
 T- the type of the old enum.
- All Superinterfaces:
 Comparable<T>
- All Known Subinterfaces:
 Art,Attribute,Biome,Cat.Type,Fluid,Frog.Variant,MapCursor.Type,PatternType,Sound,Villager.Profession,Villager.Type
@Internal
@Deprecated(since="1.21",
            forRemoval=true)
@ScheduledForRemoval(inVersion="1.22")
public interface OldEnum<T extends OldEnum<T>>
extends Comparable<T>
Deprecated, for removal: This API element is subject to removal in a future version.
only for backwards compatibility.
Class which holds common methods which are present in an enum.
- 
Method Summary
Modifier and TypeMethodDescriptionintDeprecated, for removal: This API element is subject to removal in a future version.only for backwards compatibility, old enums can not be compared.name()Deprecated, for removal: This API element is subject to removal in a future version.only for backwards compatibility.intordinal()Deprecated, for removal: This API element is subject to removal in a future version.only for backwards compatibility, it is not guaranteed that an old enum always has the same ordinal. 
- 
Method Details
- 
compareTo
@Deprecated(since="1.21", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") int compareTo(@NotNull T other) Deprecated, for removal: This API element is subject to removal in a future version.only for backwards compatibility, old enums can not be compared.- Specified by:
 compareToin interfaceComparable<T extends OldEnum<T>>- Parameters:
 other- to compare to.- Returns:
 - negative if this old enum is lower, zero if equal and positive if higher than the given old enum.
 
 - 
name
@NotNull @Deprecated(since="1.21", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") @NotNull String name()Deprecated, for removal: This API element is subject to removal in a future version.only for backwards compatibility.- Returns:
 - the name of the old enum.
 
 - 
ordinal
Deprecated, for removal: This API element is subject to removal in a future version.only for backwards compatibility, it is not guaranteed that an old enum always has the same ordinal.- Returns:
 - the ordinal of the old enum.
 
 
 -