AssetSpecificFunctionality
Package: com.hypixel.hytale.builtin.asseteditor
@Deprecatedpublic class AssetSpecificFunctionalityStatic event handlers for asset-type-specific editor functionality. Provides live preview for models, items, and weather; handles equipping items and applying models to the player entity; and serves auto-complete data for block groups, localization keys, and item categories.
Marked @Deprecated — purpose unknown, likely scheduled for refactoring.
public static void setup()Registers event handlers on the asset editor’s EventRegistry:
LoadedAssetsEvent<ModelAsset>/LoadedAssetsEvent<Item>— Updates model previews for open editors when assets reloadAssetEditorActivateButtonEvent("EquipItem")— Equips an item on the playerAssetEditorActivateButtonEvent("UseModel")— Applies a model to the playerAssetEditorActivateButtonEvent("ResetModel")— Resets the player’s model to their auth skinAssetEditorUpdateWeatherPreviewLockEvent— Toggles weather preview lockAssetEditorAssetCreatedEvent(Item/Model)— Handles post-creation equip/applyAssetEditorFetchAutoCompleteDataEvent("BlockGroups"/"LocalizationKeys")— Serves auto-complete dataAssetEditorRequestDataSetEvent("ItemCategories")— Serves item category listAssetEditorSelectAssetEvent— Updates model/weather preview on asset selectionAssetEditorClientDisconnectEvent— Cleans up weather/time overrides
Key Static Methods
Section titled “Key Static Methods”| Method | Description |
|---|---|
AssetEditorUpdateModelPreview getModelPreviewPacketForItem(AssetPath, Item) | Builds a model preview packet for an item with icon camera settings |
AssetIconProperties getDefaultItemIconProperties(Item) | Returns default camera settings based on item type (weapon, tool, armor, generic) |
Model convertToModelPacket(Item) | Converts an item’s model/texture to a protocol Model packet |
void resetTimeSettings(EditorClient, PlayerRef) | Sends game time and day/night duration to the editor |
void handleWeatherOrEnvironmentSelected(EditorClient, Path, boolean) | Applies weather preview override |
void handleWeatherOrEnvironmentUnselected(EditorClient, Path, boolean) | Clears weather preview override |
Inner Classes
Section titled “Inner Classes”PlayerPreviewData
Section titled “PlayerPreviewData”Tracks per-player preview state:
| Field | Type | Description |
|---|---|---|
weatherAssetPath | Path | Currently previewed weather asset (nullable) |
keepPreview | boolean | Whether preview persists across asset selection changes |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.