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
FieldsModifier and TypeFieldDescriptionprivate AssetMonitorprivate booleanprivate static AssetModulestatic final PluginManifestprivate final List<AssetStore<?, ?, ?>> Fields inherited from class com.hypixel.hytale.server.core.plugin.PluginBase
METRICS_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAssetPackForPath(Path path) static AssetModuleget()getAssetPack(String name) voidprivate voidinitStore(AssetStore<?, ?, ?> assetStore) booleanisAssetPathImmutable(Path path) private voidloadAndRegisterPack(Path packPath) private PluginManifestloadPackManifest(Path packPath) private voidloadPacksFromDirectory(Path modsPath) private voidprivate voidvoidregisterPack(String name, Path path, PluginManifest manifest) protected voidsetup()protected voidshutdown()voidunregisterPack(String name) private static voidvalidateWorldGen(LoadAssetEvent event) Methods inherited from class com.hypixel.hytale.server.core.plugin.JavaPlugin
getClassLoader, getFile, getType, start0Methods inherited from class com.hypixel.hytale.server.core.plugin.PluginBase
getAssetRegistry, getBasePermission, getBlockStateRegistry, getChunkStoreRegistry, getClientFeatureRegistry, getCodecRegistry, getCodecRegistry, getCodecRegistry, getCommandRegistry, getDataDirectory, getEntityRegistry, getEntityStoreRegistry, getEventRegistry, getIdentifier, getLogger, getManifest, getName, getState, getTaskRegistry, isDisabled, isEnabled, preLoad, setup0, shutdown0, start, withConfig, withConfig
-
Field Details
-
MANIFEST
-
instance
-
assetMonitor
-
assetPacks
-
hasLoaded
private boolean hasLoaded -
pendingAssetStores
-
-
Constructor Details
-
AssetModule
-
-
Method Details
-
get
-
setup
protected void setup()- Overrides:
setupin classPluginBase
-
shutdown
protected void shutdown()- Overrides:
shutdownin classPluginBase
-
getBaseAssetPack
-
getAssetPacks
-
getAssetMonitor
-
findAssetPackForPath
-
isAssetPathImmutable
-
loadPackManifest
- Throws:
IOException
-
loadPacksFromDirectory
-
loadAndRegisterPack
-
registerPack
public void registerPack(@Nonnull String name, @Nonnull Path path, @Nonnull PluginManifest manifest) -
unregisterPack
-
getAssetPack
-
onRemoveStore
-
onNewStore
-
initPendingStores
public void initPendingStores() -
initStore
-
validateWorldGen
-