Package org.bukkit
Class Registry.SimpleRegistry<T extends Enum<T> & Keyed>
- java.lang.Object
-
- org.bukkit.Registry.SimpleRegistry<T>
-
-
Field Summary
-
Fields inherited from interface org.bukkit.Registry
ADVANCEMENT, ART, BIOME, BOSS_BARS, ENCHANTMENT, ENTITY_TYPE, LOOT_TABLES, MATERIAL, MEMORY_MODULE_TYPE, STATISTIC, VILLAGER_PROFESSION, VILLAGER_TYPE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SimpleRegistry(Class<T> type)
protected
SimpleRegistry(Class<T> type, Predicate<T> predicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get(NamespacedKey key)
Get the object by its key.Iterator<T>
iterator()
-
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
-
-
-
-
Method Detail
-
get
@Nullable public T get(@NotNull NamespacedKey key)
Description copied from interface:Registry
Get the object by its key.
-
-