Package org.empirewar.orbis.registry
Class SimpleOrbisRegistry<T,K>
java.lang.Object
org.empirewar.orbis.registry.SimpleOrbisRegistry<T,K>
- All Implemented Interfaces:
Iterable<T>,net.kyori.adventure.key.Keyed,OrbisRegistry<T,K>
- Direct Known Subclasses:
KeyOrbisRegistry,StringOrbisRegistry
public abstract non-sealed class SimpleOrbisRegistry<T,K>
extends Object
implements OrbisRegistry<T,K>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RegistryLifecycleprotected final net.kyori.adventure.key.Key -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAll()getKeys()iterator()net.kyori.adventure.key.Keykey()voidsetLifecycle(RegistryLifecycle lifecycle) toString()unregister(K key) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.empirewar.orbis.registry.OrbisRegistry
getCodec
-
Field Details
-
registryKey
protected final net.kyori.adventure.key.Key registryKey -
entries
-
lifecycle
-
-
Constructor Details
-
SimpleOrbisRegistry
public SimpleOrbisRegistry(net.kyori.adventure.key.Key registryKey)
-
-
Method Details
-
key
public net.kyori.adventure.key.Key key()- Specified by:
keyin interfacenet.kyori.adventure.key.Keyed
-
register
- Specified by:
registerin interfaceOrbisRegistry<T,K>
-
unregister
- Specified by:
unregisterin interfaceOrbisRegistry<T,K>
-
get
- Specified by:
getin interfaceOrbisRegistry<T,K>
-
getKey
- Specified by:
getKeyin interfaceOrbisRegistry<T,K>
-
getAll
- Specified by:
getAllin interfaceOrbisRegistry<T,K>
-
getKeys
- Specified by:
getKeysin interfaceOrbisRegistry<T,K>
-
getLifecycle
- Specified by:
getLifecyclein interfaceOrbisRegistry<T,K>
-
setLifecycle
- Specified by:
setLifecyclein interfaceOrbisRegistry<T,K>
-
toString
-
iterator
-