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()));
});
}
Aggregations