Class DynamicMetaStore<K>

java.lang.Object
com.hypixel.hytale.server.core.meta.AbstractMetaStore<K>
com.hypixel.hytale.server.core.meta.DynamicMetaStore<K>
All Implemented Interfaces:
IMetaStore<K>, IMetaStoreImpl<K>

public class DynamicMetaStore<K> extends AbstractMetaStore<K>
  • Field Details

    • map

      @Nonnull private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<Object> map
  • Constructor Details

    • DynamicMetaStore

      public DynamicMetaStore(K parent, IMetaRegistry<K> registry)
    • DynamicMetaStore

      public DynamicMetaStore(K parent, IMetaRegistry<K> registry, boolean bypassEncodedCache)
  • Method Details

    • get0

      protected <T> T get0(@Nonnull MetaKey<T> key)
      Specified by:
      get0 in class AbstractMetaStore<K>
    • getMetaObject

      public <T> T getMetaObject(@Nonnull MetaKey<T> key)
    • getIfPresentMetaObject

      public <T> T getIfPresentMetaObject(@Nonnull MetaKey<T> key)
    • putMetaObject

      public <T> T putMetaObject(@Nonnull MetaKey<T> key, T obj)
    • removeMetaObject

      public <T> T removeMetaObject(@Nonnull MetaKey<T> key)
    • removeSerializedMetaObject

      @Nullable public <T> T removeSerializedMetaObject(MetaKey<T> key)
    • hasMetaObject

      public boolean hasMetaObject(@Nonnull MetaKey<?> key)
    • forEachMetaObject

      public void forEachMetaObject(@Nonnull IMetaStore.MetaEntryConsumer consumer)
    • clone

      @Nonnull public DynamicMetaStore<K> clone(K parent)
    • copyFrom

      public void copyFrom(@Nonnull DynamicMetaStore<K> other)