Enum Class ObjectContentsType
- All Implemented Interfaces:
Serializable,Comparable<ObjectContentsType>,Constable,EnumMapDispatchHasher<ObjectContentsType,net.kyori.adventure.text.object.ObjectContents>
public enum ObjectContentsType
extends Enum<ObjectContentsType>
implements EnumMapDispatchHasher<ObjectContentsType,net.kyori.adventure.text.object.ObjectContents>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MapBuilder<net.kyori.adventure.text.object.ObjectContents> -
Method Summary
Modifier and TypeMethodDescriptionReturns theEnumMapDispatchHasherof this implementation ofEnumMapDispatchHasher.MapBuilder<? extends net.kyori.adventure.text.object.ObjectContents> static ObjectContentsTypeReturns the enum constant of this class with the specified name.static ObjectContentsType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Class<? extends net.kyori.adventure.text.object.ObjectContents>
-
Enum Constant Details
-
ATLAS
-
PLAYER
-
-
Field Details
-
OBJECT_CONTENTS_MAP_BUILDER
public static final MapBuilder<net.kyori.adventure.text.object.ObjectContents> OBJECT_CONTENTS_MAP_BUILDER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
distinction
Description copied from interface:EnumMapDispatchHasherReturns theEnumMapDispatchHasherof this implementation ofEnumMapDispatchHasher.Implementations must ensure that each
EnumMapDispatchHasheris unique and only for one implementation ofEnumMapDispatchHasher.- Specified by:
distinctionin interfaceEnumMapDispatchHasher<ObjectContentsType,net.kyori.adventure.text.object.ObjectContents> - Returns:
- the
EnumMapDispatchHasherof this implementation ofEnumMapDispatchHasher
-
valueTypeClass
- Specified by:
valueTypeClassin interfaceEnumMapDispatchHasher<ObjectContentsType,net.kyori.adventure.text.object.ObjectContents> - Returns:
- the
Classof this implementation ofEnumMapDispatchHasher
-
mapBuilder
- Specified by:
mapBuilderin interfaceEnumMapDispatchHasher<ObjectContentsType,net.kyori.adventure.text.object.ObjectContents> - Returns:
- the
MapBuilderused to encode this implementation ofEnumMapDispatchHasher
-