SpongeAPI icon indicating copy to clipboard operation
SpongeAPI copied to clipboard

Add client completion type for remaining joined strings

Open MrSlimeDiamond opened this issue 7 months ago • 0 comments

SpongeAPI | Sponge

This adds ClientCompletionTypes.REMAINING_JOINED_STRINGS for value parsers.

So now custom value parsers, returning custom types, can take a joined string of inputs.

In value parsers:

@Override
public List<ClientCompletionType> clientCompletionType() {
    return List.of(ClientCompletionTypes.REMAINING_JOINED_STRINGS.get());
}

MrSlimeDiamond avatar May 28 '25 08:05 MrSlimeDiamond