Class HytaleAssetStore<K,T extends JsonAssetWithMap<K,M>,M extends AssetMap<K,T>>
java.lang.Object
com.hypixel.hytale.assetstore.AssetStore<K,T,M>
com.hypixel.hytale.server.core.asset.HytaleAssetStore<K,T,M>
public class HytaleAssetStore<K,T extends JsonAssetWithMap<K,M>,M extends AssetMap<K,T>>
extends AssetStore<K,T,M>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classstatic classHytaleAssetStore.Builder<K,T extends JsonAssetWithMap<K, M>, M extends AssetMap<K, T>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SoftReference<Packet[]> protected final Function<K, ItemWithAllMetadata> protected final AssetPacketGenerator<K, T, M> Fields inherited from class com.hypixel.hytale.assetstore.AssetStore
assetMap, childAssetsMap, codec, DISABLE_ASSET_COMPARE, DISABLE_DYNAMIC_DEPENDENCIES, extension, idProvider, isUnknown, kClass, keyFunction, loadedContainedAssetsFor, loadsAfter, loadsBefore, logger, path, preAddedAssets, replaceOnRemove, tClass, unmodifiable, unmodifiableLoadsAfter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFileMonitor(String packKey, Path assetsPath) static <K,T extends JsonAssetWithMap<K, M>, M extends AssetMap<K, T>>
HytaleAssetStore.Builder<K, T, M> static <T extends JsonAssetWithMap<String,M>, M extends AssetMap<String, T>>
HytaleAssetStore.Builder<String, T, M> protected EventBusprotected voidhandleRemoveOrUpdate(Set<K> toBeRemoved, Map<K, T> toBeUpdated, AssetUpdateQuery query) voidremoveFileMonitor(Path path) voidsendAssets(Consumer<Packet[]> packetConsumer) protected voidsendNotificationKeys(Message primaryMessage, String icon, Set<K> keys) protected voidsendNotificationPaths(Message primaryMessage, Set<Path> paths) protected voidsendReloadedNotification(AssetLoadResult<K, T> result) protected voidsendRemovedNotification(Set<K> removedKeys) Methods inherited from class com.hypixel.hytale.assetstore.AssetStore
addChildAssetReferences, collectAllChildren, decode, decodeAssets, decodeFilePathKey, decodeStringKey, getAssetClass, getAssetMap, getCodec, getExtension, getIdProvider, getKeyClass, getKeyFunction, getLoadsAfter, getLogger, getPath, getPreAddedAssets, getReplaceOnRemove, hasLoadedContainedAssetsFor, injectLoadsAfter, isUnmodifiable, loadAllChildren, loadAssets, loadAssets, loadAssets, loadAssets0, loadAssetsFromDirectory, loadAssetsFromPaths, loadAssetsFromPaths, loadAssetsFromPaths, loadAssetsWithReferences, loadAssetsWithReferences, loadAssetsWithReferences, loadBuffersWithKeys, loadContainedAssets, logChildTree, logDependencies, logLoadedAsset, logRemoveAsset, logRemoveChildren, logRemoveChildren, logUnusedKeys, removeAssetPack, removeAssets, removeAssets, removeAssetWithPath, removeAssetWithPath, removeAssetWithPaths, removeAssetWithPaths, removeChildrenAssets, simplifyLoadBeforeDependencies, testKeyFormat, toString, transformKey, validate, validateCodecDefaults, writeAssetToDisk, writeAssetToDisk
-
Field Details
-
SETUP_PACKET_CONSUMERS
-
packetGenerator
protected final AssetPacketGenerator<K,T extends JsonAssetWithMap<K, packetGeneratorM>, M extends AssetMap<K, T>> -
notificationItemFunction
-
cachedInitPackets
-
-
Constructor Details
-
HytaleAssetStore
-
-
Method Details
-
getPacketGenerator
-
getNotificationItemFunction
-
getEventBus
- Specified by:
getEventBusin classAssetStore<K,T extends JsonAssetWithMap<K, M>, M extends AssetMap<K, T>>
-
addFileMonitor
- Specified by:
addFileMonitorin classAssetStore<K,T extends JsonAssetWithMap<K, M>, M extends AssetMap<K, T>>
-
removeFileMonitor
- Specified by:
removeFileMonitorin classAssetStore<K,T extends JsonAssetWithMap<K, M>, M extends AssetMap<K, T>>
-
handleRemoveOrUpdate
protected void handleRemoveOrUpdate(@Nullable Set<K> toBeRemoved, @Nullable Map<K, T> toBeUpdated, @Nonnull AssetUpdateQuery query) - Specified by:
handleRemoveOrUpdatein classAssetStore<K,T extends JsonAssetWithMap<K, M>, M extends AssetMap<K, T>>
-
sendAssets
-
sendReloadedNotification
-
sendRemovedNotification
-
sendNotificationKeys
-
sendNotificationPaths
-
builder
@Nonnull public static <T extends JsonAssetWithMap<String,M>, HytaleAssetStore.Builder<String,M extends AssetMap<String, T>> T, builderM> (Class<T> tClass, M assetMap) -
builder
@Nonnull public static <K,T extends JsonAssetWithMap<K, HytaleAssetStore.Builder<K,M>, M extends AssetMap<K, T>> T, builderM> (Class<K> kClass, Class<T> tClass, M assetMap)
-