CommonAssetTypeHandler
Package: com.hypixel.hytale.builtin.asseteditor.assettypehandler
public class CommonAssetTypeHandler extends AssetTypeHandlerHandler for common (client-distributed) asset types: textures (.png), models (.blockymodel), animations (.blockyanim), sounds (.ogg), UI files (.ui), and language files (.lang). These assets live under the Common/ directory and are distributed to all connected clients.
Constructor
Section titled “Constructor”public CommonAssetTypeHandler(String id, String icon, String fileExtension, AssetEditorEditorType editorType)Key Methods
Section titled “Key Methods”| Method | Description |
|---|---|
AssetLoadResult loadAsset(...) | Registers a FileCommonAsset in CommonAssetRegistry; returns COMMON_ASSETS_CHANGED if the hash differs |
AssetLoadResult unloadAsset(AssetPath, AssetUpdateQuery) | Removes from CommonAssetRegistry and sends removal to players if needed |
AssetLoadResult restoreOriginalAsset(AssetPath, AssetUpdateQuery) | Reads the original file from the asset pack root and re-registers it |
AssetUpdateQuery getDefaultUpdateQuery() | Returns a query with commonAssetsRebuild = true |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.