Package org.bukkit
Class Registry.SimpleRegistry<T extends Enum<T> & Keyed>
java.lang.Object
org.bukkit.Registry.NotARegistry<T>
org.bukkit.Registry.SimpleRegistry<T>
@Internal
public static class Registry.SimpleRegistry<T extends Enum<T> & Keyed>
extends Registry.NotARegistry<T>
-
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
ModifierConstructorDescriptionprotected
SimpleRegistry
(Class<T> type) protected
SimpleRegistry
(Class<T> type, Predicate<T> predicate) -
Method Summary
Methods inherited from class org.bukkit.Registry.NotARegistry
getKey, getTag, getTags, hasTag, stream
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, getOrThrow, match
-
Constructor Details
-
SimpleRegistry
-
SimpleRegistry
-
-
Method Details
-
get
Description copied from interface:Registry
Get the object by its key.- Parameters:
key
- non-null key- Returns:
- item or null if it does not exist
-
iterator
-
getType
Deprecated, for removal: This API element is subject to removal in a future version.
-