Search in sources :

Example 1 with SpongeClientCompletionType

use of org.spongepowered.common.command.parameter.managed.clientcompletion.SpongeClientCompletionType in project SpongeCommon by SpongePowered.

the class SpongeRegistryLoaders method clientCompletionType.

public static RegistryLoader<ClientCompletionType> clientCompletionType() {
    return RegistryLoader.of(l -> {
        l.add(ClientCompletionTypes.DECIMAL_NUMBER, k -> new SpongeClientCompletionType(DoubleArgumentType.doubleArg()));
        l.add(ClientCompletionTypes.SNBT, k -> new SpongeClientCompletionType(CompoundTagArgument.compoundTag()));
        l.add(ClientCompletionTypes.NONE, k -> SpongeClientCompletionType.NONE);
        l.add(ClientCompletionTypes.RESOURCE_KEY, k -> new SpongeClientCompletionType(ResourceLocationArgument.id()));
        l.add(ClientCompletionTypes.STRING, k -> new SpongeClientCompletionType(StringArgumentType.string()));
        l.add(ClientCompletionTypes.WHOLE_NUMBER, k -> new SpongeClientCompletionType(LongArgumentType.longArg()));
    });
}
Also used : SpongeClientCompletionType(org.spongepowered.common.command.parameter.managed.clientcompletion.SpongeClientCompletionType)

Aggregations

SpongeClientCompletionType (org.spongepowered.common.command.parameter.managed.clientcompletion.SpongeClientCompletionType)1