Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- get()
- getBaseAssetPack()
- getAssetPacks()
- getAssetMonitor()
- findAssetPackForPath(Path)
- isWithinPackSubDir(Path, String)
- isAssetPathImmutable(Path)
- registerPack(String, Path, PluginManifest, AssetPack.PackSource)
- unregisterPack(String)
- validatePackExistsOnDisk(AssetPack)
- getAssetPack(String)
- initPendingStores()
Class AssetModule
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.server.core.asset.AssetModule
- All Implemented Interfaces:
CommandOwner
-
Field Summary
FieldsFields inherited from class PluginBase
METRICS_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAssetPackForPath(Path path) static AssetModuleget()getAssetPack(String name) voidbooleanisAssetPathImmutable(Path path) booleanisWithinPackSubDir(Path path, String subDir) Checks if a path is within any asset pack's specified subdirectory.booleanregisterPack(String name, Path path, PluginManifest manifest, AssetPack.PackSource source) voidunregisterPack(String name) booleanMethods inherited from class JavaPlugin
getClassLoader, getFile, getTypeMethods inherited from class PluginBase
getAssetRegistry, getBasePermission, getChunkStoreRegistry, getClientFeatureRegistry, getCodecRegistry, getCodecRegistry, getCodecRegistry, getCommandRegistry, getDataDirectory, getEntityRegistry, getEntityStoreRegistry, getEventRegistry, getIdentifier, getLogger, getManifest, getName, getState, getTaskRegistry, isDisabled, isEnabled, preLoad
-
Field Details
-
MANIFEST
-
-
Constructor Details
-
AssetModule
-
-
Method Details
-
get
-
getBaseAssetPack
-
getAssetPacks
-
getAssetMonitor
-
findAssetPackForPath
-
isWithinPackSubDir
Checks if a path is within any asset pack's specified subdirectory.- Parameters:
path- the path to checksubDir- the subdirectory within packs (e.g. "Server/Imports/Models")- Returns:
trueif the path is within any pack's subdirectory
-
isAssetPathImmutable
- Parameters:
path- the path to test- Returns:
trueif the path is under an immutable asset pack
-
registerPack
public boolean registerPack(@Nonnull String name, @Nonnull Path path, @Nonnull PluginManifest manifest, @Nonnull AssetPack.PackSource source) -
unregisterPack
-
validatePackExistsOnDisk
-
getAssetPack
-
initPendingStores
public void initPendingStores()
-