Skip to content

Asset Editor Events

Package: com.hypixel.hytale.builtin.asseteditor.event

Events related to the in-game asset editor. These are primarily for development tools and editor integration.


Abstract base class for most asset editor events.

Class: com.hypixel.hytale.builtin.asseteditor.event.EditorClientEvent<KeyType>

PropertyValue
ImplementsIEvent<KeyType>
AbstractYes
MethodReturn TypeDescription
getEditorClient()EditorClientReturns the editor client associated with this event

Fired when an asset editor client disconnects.

Class: com.hypixel.hytale.builtin.asseteditor.event.AssetEditorClientDisconnectEvent

PropertyValue
ExtendsEditorClientEvent<Void>
AsyncNo
CancellableNo
MethodReturn TypeDescription
getEditorClient()EditorClientReturns the editor client that disconnected
getDisconnectReason()PacketHandler.DisconnectReasonReturns the reason for disconnection

Fired when a client using the asset editor disconnects from the server.


Fired when an asset is created in the editor.

Class: com.hypixel.hytale.builtin.asseteditor.event.AssetEditorAssetCreatedEvent

PropertyValue
ExtendsEditorClientEvent<String>
AsyncNo
CancellableNo
MethodReturn TypeDescription
getEditorClient()EditorClientReturns the editor client that created the asset
getAssetType()StringReturns the type of asset being created
getAssetPath()PathReturns the file path where the asset will be saved
getData()byte[]Returns the raw asset data
getButtonId()StringReturns the ID of the button that triggered creation

Fired when a new asset is created through the asset editor.


Fired when an asset is selected in the editor.

Class: com.hypixel.hytale.builtin.asseteditor.event.AssetEditorSelectAssetEvent

PropertyValue
ExtendsEditorClientEvent<Void>
AsyncNo
CancellableNo
MethodReturn TypeDescription
getEditorClient()EditorClientReturns the editor client selecting the asset
getAssetType()StringReturns the type of the newly selected asset
getAssetFilePath()AssetPathReturns the path of the newly selected asset
getPreviousAssetType()StringReturns the type of the previously selected asset
getPreviousAssetFilePath()AssetPathReturns the path of the previously selected asset

Fired when a user selects an asset in the editor interface.


Fired when a button is activated in the editor.

Class: com.hypixel.hytale.builtin.asseteditor.event.AssetEditorActivateButtonEvent

PropertyValue
ExtendsEditorClientEvent<String>
AsyncNo
CancellableNo
MethodReturn TypeDescription
getEditorClient()EditorClientReturns the editor client that activated the button
getButtonId()StringReturns the ID of the activated button

Fired when a user clicks a button in the asset editor UI.


Fired when data is requested from the editor. This is an async event that allows handlers to populate results.

Class: com.hypixel.hytale.builtin.asseteditor.event.AssetEditorRequestDataSetEvent

PropertyValue
ImplementsIAsyncEvent<String>
AsyncYes
CancellableNo
MethodReturn TypeDescription
getEditorClient()EditorClientReturns the editor client requesting the data
getDataSet()StringReturns the name of the requested dataset
getResults()String[]Returns the current results array
setResults(String[])voidSets the results to return to the client

Fired when the asset editor requests a dataset from the server.


Fired when autocomplete data is requested. This is an async event that allows handlers to populate autocomplete suggestions.

Class: com.hypixel.hytale.builtin.asseteditor.event.AssetEditorFetchAutoCompleteDataEvent

PropertyValue
ImplementsIAsyncEvent<String>
AsyncYes
CancellableNo
MethodReturn TypeDescription
getEditorClient()EditorClientReturns the editor client requesting autocomplete
getDataSet()StringReturns the dataset to search for completions
getQuery()StringReturns the current query string to autocomplete
getResults()String[]Returns the current autocomplete suggestions
setResults(String[])voidSets the autocomplete suggestions to return

Fired when the editor requests autocomplete suggestions for a field.


Fired when weather preview lock state changes.

Class: com.hypixel.hytale.builtin.asseteditor.event.AssetEditorUpdateWeatherPreviewLockEvent

PropertyValue
ExtendsEditorClientEvent<Void>
AsyncNo
CancellableNo
MethodReturn TypeDescription
getEditorClient()EditorClientReturns the editor client toggling the lock
isLocked()booleanReturns whether weather preview is now locked

Fired when the weather preview lock state is toggled in the editor.


These events are primarily used for development and modding tools. Most plugin developers won’t need to interact with these events unless building custom editor integrations.