Package org.bukkit
Class Registry.NotARegistry<A extends Keyed>
java.lang.Object
org.bukkit.Registry.NotARegistry<A>
- Direct Known Subclasses:
Registry.SimpleRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.Registry
Registry.NotARegistry<A extends Keyed>, Registry.SimpleRegistry<T extends Enum<T> & Keyed> -
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, ENCHANTMENT, ENTITY_TYPE, FLUID, FROG_VARIANT, GAME_EVENT, INSTRUMENT, ITEM, JUKEBOX_SONG, LOOT_TABLES, MAP_DECORATION_TYPE, MATERIAL, MEMORY_MODULE_TYPE, MENU, MOB_EFFECT, PARTICLE_TYPE, POTION, SOUND_EVENT, STATISTIC, STRUCTURE, STRUCTURE_TYPE, TRIM_MATERIAL, TRIM_PATTERN, VILLAGER_PROFESSION, VILLAGER_TYPE, WOLF_VARIANT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the key for this object.Gets the named registry set (tag) for the given key.Collection<Tag<A>> getTags()Gets all the tags in this registry.booleanChecks if this registry has a tag with the given key.Returns a new stream, which contains all registry keys, which are registered to the registry.intsize()Gets the size of the registry.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, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.bukkit.Registry
get, get, get, getKeyOrThrow, getOrThrow, getOrThrow, getOrThrow, getTagValues, match
-
Constructor Details
-
NotARegistry
public NotARegistry()
-
-
Method Details
-
stream
Description copied from interface:RegistryReturns a new stream, which contains all registry items, which are registered to the registry. -
keyStream
Description copied from interface:RegistryReturns a new stream, which contains all registry keys, which are registered to the registry. -
size
public int size()Description copied from interface:RegistryGets the size of the registry. -
getKey
Description copied from interface:RegistryGet 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:RegistryChecks if this registry has a tag with the given key. -
getTag
Description copied from interface:RegistryGets the named registry set (tag) for the given key. -
getTags
Description copied from interface:RegistryGets all the tags in this registry.
-