Skip to main content

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

NameDescription
eventSelectorThe id of the element to target. Example #TextField
eventActionDefine actionName passed into the FeatureDefinition.handleEvent callback.
eventBindingTypeThe Hytale CustomUI element trigger type.
eventArgsData that should be returned from code.
eventDataData that should be returned from element selectors.