Package org.bukkit
Class Registry.SimpleRegistry<T extends Enum<T> & Keyed>
java.lang.Object
org.bukkit.Registry.SimpleRegistry<T>
-
Nested Class Summary
-
Field Summary
Fields inherited from interface org.bukkit.Registry
ADVANCEMENT, ART, ATTRIBUTE, BANNER_PATTERN, BIOME, BLOCK, BOSS_BARS, CAT_VARIANT, DAMAGE_TYPE, DATA_COMPONENT_TYPE, EFFECT, ENCHANTMENT, ENTITY_TYPE, FLUID, FROG_VARIANT, GAME_EVENT, INSTRUMENT, ITEM, JUKEBOX_SONG, LOOT_TABLES, MAP_DECORATION_TYPE, MATERIAL, MEMORY_MODULE_TYPE, MENU, PARTICLE_TYPE, POTION, POTION_EFFECT_TYPE, SOUNDS, STATISTIC, STRUCTURE, STRUCTURE_TYPE, TRIM_MATERIAL, TRIM_PATTERN, VILLAGER_PROFESSION, VILLAGER_TYPE, WOLF_VARIANT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(@NotNull NamespacedKey key) Get the object by its key.Get the key for this object.Get the object by its key.Gets the named registry set (tag) for the given key.getType()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Checks if this registry has a tag with the given key.iterator()
stream()
Returns a new stream, which contains all registry items, which are registered to the registry.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.bukkit.Registry
get, get, getKeyOrThrow, getOrThrow, getOrThrow, match
-
Constructor Details
-
SimpleRegistry
-
SimpleRegistry
-
-
Method Details
-
get
Description copied from interface:Registry
Get the object by its key. -
getOrThrow
Description copied from interface:Registry
Get the object by its key. If there is no object with the given key, an exception will be thrown. -
stream
Description copied from interface:Registry
Returns a new stream, which contains all registry items, which are registered to the registry. -
iterator
-
getType
Deprecated, for removal: This API element is subject to removal in a future version. -
getKey
Description copied from interface:Registry
Get the key for this object.Some types can exist without being in a registry and such will have no key associated with them. This method will return null.
-
hasTag
Description copied from interface:Registry
Checks if this registry has a tag with the given key. -
getTag
Description copied from interface:Registry
Gets the named registry set (tag) for the given key.
-