Package org.bukkit
Class Registry.SimpleRegistry<T extends Enum<T> & Keyed>
java.lang.Object
org.bukkit.Registry.SimpleRegistry<T>
- 
Nested Class Summary
- 
Field SummaryFields inherited from interface org.bukkit.RegistryADVANCEMENT, ART, ATTRIBUTE, BANNER_PATTERN, BIOME, BLOCK, BOSS_BARS, CAT_VARIANT, DAMAGE_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, SOUNDS, STATISTIC, STRUCTURE, STRUCTURE_TYPE, TRIM_MATERIAL, TRIM_PATTERN, VILLAGER_PROFESSION, VILLAGER_TYPE, WOLF_VARIANT
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedSimpleRegistry(Class<T> type) protectedSimpleRegistry(Class<T> type, Predicate<T> predicate) 
- 
Method SummaryModifier and TypeMethodDescriptionget(NamespacedKey key) Get the object by its key.getOrThrow(NamespacedKey key) Get the object by its key.getType()Deprecated, for removal: This API element is subject to removal in a future version.iterator()stream()Returns a new stream, which contains all registry items, which are registered to the registry.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
SimpleRegistry
- 
SimpleRegistry
 
- 
- 
Method Details- 
getDescription copied from interface:RegistryGet the object by its key.
- 
getOrThrowDescription copied from interface:RegistryGet the object by its key. If there is no object with the given key, an exception will be thrown.
- 
streamDescription copied from interface:RegistryReturns a new stream, which contains all registry items, which are registered to the registry.
- 
iterator
- 
getTypeDeprecated, for removal: This API element is subject to removal in a future version.
 
-