AssetEditorSelectAssetEvent
Package: com.hypixel.hytale.builtin.asseteditor.event
public class AssetEditorSelectAssetEvent extends EditorClientEvent<Void>Fired when an asset is selected in the editor. Carries both the newly selected asset and the previously selected asset for transition handling (e.g. clearing weather preview when switching away from a weather asset).
Constructor
Section titled “Constructor”public AssetEditorSelectAssetEvent(EditorClient editorClient, String assetType, AssetPath assetFilePath, String previousAssetType, AssetPath previousAssetFilePath)Methods
Section titled “Methods”| Method | Description |
|---|---|
String getAssetType() | Returns the selected asset’s type ID |
AssetPath getAssetFilePath() | Returns the selected asset’s path |
String getPreviousAssetType() | Returns the previously selected asset’s type ID |
AssetPath getPreviousAssetFilePath() | Returns the previously selected asset’s path |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.