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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentrySet()getOrDefault(@NotNull String id, T def) booleaniterator()intsize()voidUnregister 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, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
entries
-
-
Constructor Details
-
Registry
public Registry()
-
-
Method Details