Class MetaRegistry<K>
java.lang.Object
com.hypixel.hytale.server.core.meta.MetaRegistry<K>
- All Implemented Interfaces:
IMetaRegistry<K>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.hypixel.hytale.server.core.meta.IMetaRegistry
IMetaRegistry.MetaEntryConsumer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ReentrantReadWriteLockprivate final Map<String, MetaRegistry.MetaRegistryEntry> private final List<MetaRegistry.MetaRegistryEntry> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachMetaEntry(IMetaStore<K> store, IMetaRegistry.MetaEntryConsumer consumer) getMetaKeyForCodecKey(String codecKey) <T> TnewMetaObject(MetaKey<T> key, K parent) <T> MetaKey<T> registerMetaObject(Function<K, T> function, boolean persistent, String keyName, Codec<T> codec) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.core.meta.IMetaRegistry
registerMetaObject, registerMetaObject, registerMetaObject
-
Field Details
-
parameterMapping
-
suppliers
-
lock
-
-
Constructor Details
-
MetaRegistry
public MetaRegistry()
-
-
Method Details
-
registerMetaObject
public <T> MetaKey<T> registerMetaObject(Function<K, T> function, boolean persistent, String keyName, @Nonnull Codec<T> codec) - Specified by:
registerMetaObjectin interfaceIMetaRegistry<K>
-
newMetaObject
- Specified by:
newMetaObjectin interfaceIMetaRegistry<K>
-
forEachMetaEntry
public void forEachMetaEntry(@Nonnull IMetaStore<K> store, @Nonnull IMetaRegistry.MetaEntryConsumer consumer) - Specified by:
forEachMetaEntryin interfaceIMetaRegistry<K>
-
getMetaKeyForCodecKey
- Specified by:
getMetaKeyForCodecKeyin interfaceIMetaRegistry<K>
-