FeatureEventDefinition
Definition
com.deezmods.unifiedui.api.definitions.FeatureEventDefinition
package com.deezmods.unifiedui.api.definitions;
public record FeatureEventDefinition (
String eventSelector,
String eventAction,
CustomUIEventBindingType eventBindingType,
Map<Integer, String> eventArgs,
Map<Integer, String> eventData
){}
Summary
Defines how an event should be mapped for UI built in the FeatureDefinition.buildUserInterface callback.
Fields
| Name | Description |
|---|---|
| eventSelector | The id of the element to target. Example #TextField |
| eventAction | Define actionName passed into the FeatureDefinition.handleEvent callback. |
| eventBindingType | The Hytale CustomUI element trigger type. |
| eventArgs | Data that should be returned from code. |
| eventData | Data that should be returned from element selectors. |