AssetStoreTypeHandler
Package: com.hypixel.hytale.builtin.asseteditor.assettypehandler
public class AssetStoreTypeHandler extends JsonTypeHandlerHandler for asset types backed by an AssetStore. Decodes a BSON document into the store’s asset format, loads it into the store, and manages the rebuild cache configuration from the asset’s JSON schema. Used for all Server/-side JSON asset types (block types, items, models, weather, etc.).
Constructor
Section titled “Constructor”public AssetStoreTypeHandler(AssetStore assetStore)Automatically creates the AssetEditorAssetType config from the store’s class name, path, extension, and JsonConfig editor type.
Key Methods
Section titled “Key Methods”| Method | Description |
|---|---|
AssetStore getAssetStore() | Returns the backing AssetStore |
AssetLoadResult loadAssetFromDocument(...) | Decodes the document, loads into the store; sends error popup on failure |
AssetLoadResult unloadAsset(AssetPath, AssetUpdateQuery) | Removes the asset from the store |
AssetLoadResult restoreOriginalAsset(AssetPath, AssetUpdateQuery) | Reloads the asset from disk via loadAssetsFromPaths |
AssetUpdateQuery getDefaultUpdateQuery() | Builds the rebuild cache from the schema’s uiRebuildCaches (models, textures, icons, blocks, map geometry) |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.