Package org.mockbukkit.mockbukkit.tags
Enum Class TagRegistry
- All Implemented Interfaces:
Serializable,Comparable<TagRegistry>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe blocks registryThe entity types;The fluids;The game events;The items registry -
Method Summary
Modifier and TypeMethodDescriptionfinal @NotNull Stringfinal @NotNull Map<NamespacedKey, Tag<?>> getTags()@NotNull Class<?> booleanisEmpty()static TagRegistryReturns the enum constant of this class with the specified name.static TagRegistry[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLOCKS
The blocks registry -
ITEMS
The items registry -
FLUIDS
The fluids; -
GAME_EVENTS
The game events; -
ENTITY_TYPES
The entity types;
-
-
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
-
getRegistry
- Returns:
- The name of the registry.
-
getTagType
- Returns:
- The tag tpe.
-
getTags
- Returns:
- A map of all tags.
-
isEmpty
public boolean isEmpty()- Returns:
- Whether the tags are empty.
-