Package net.pl3x.map.core.registry
Class Registry<T extends Keyed>
java.lang.Object
net.pl3x.map.core.registry.Registry<T>
- All Implemented Interfaces:
Iterable<@NotNull T>
- Direct Known Subclasses:
BiomeRegistry
,BlockRegistry
,HeightmapRegistry
,IconRegistry
,PlayerRegistry
,RendererRegistry
,WorldRegistry
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionentrySet()
getOrDefault
(@NotNull String id, T def) boolean
iterator()
int
size()
void
Unregister all entries.unregister
(@NotNull String id) @NotNull Collection
<@NotNull T> values()
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
-
Field Details
-
entries
-
-
Constructor Details
-
Registry
public Registry()
-
-
Method Details