Open bx-h opened 3 months ago
You need to tell SK how to convert your type, i.e:
ContextVariableTypes.addGlobalConverter(
new ContextVariableTypeConverter<MyClass>(
MyClass.class,
obj -> {
// Converter to convert an unknown object to MyClass
},
it -> {
// convert MyClass to string
},
it -> {
// Parse string to MyClass
},
Collections.emptyList()
)
);
it seems not possible :(