Package-level declarations

Types

Link copied to clipboard

Mojang release container, allowing for retrieval of various Mojang mappings release versions.

Link copied to clipboard
Link copied to clipboard

A wrapper to find the latest release and snapshot of what YarnNamespace specifies. This is used because of Linkie's removal of the ability to specify different default versions for different "channels".

Properties

Link copied to clipboard
val classesToPages: (Namespace, MappingsContainer, ClassResults, Boolean) -> <Error class: unknown class>

A convenience function variable for having an unused MappingsContainer argument. This is to allow a more general function to be used for all queries.

Link copied to clipboard
val classMatchesToPages: (MappingsContainer, Matches<Class>, Locale) -> List<String>

Convienence function for making code more generalized.

Link copied to clipboard
val fieldMatchesToPages: (MappingsContainer, Matches<MemberEntry<Field>>, Locale) -> List<String>

Convenience function for making code more generalized.

Link copied to clipboard
val methodMatchesToPages: (MappingsContainer, Matches<MemberEntry<Method>>, Locale) -> List<String>

Convienence function for making code more generalized.

Link copied to clipboard

Attempt to get an obfuscated name from three possible states.

Functions

Link copied to clipboard
inline fun <T> ConverterBuilder<T>.autocompleteVersions(crossinline versions: suspend AutoCompleteInteraction.(event: AutoCompleteInteractionCreateEvent) -> List<String>)

Define autocomplete for a list of strings. versions is a supplier of the list of strings to autocomplete from.

Link copied to clipboard
fun classesToPages(namespace: Namespace, classes: List<Class>): List<Pair<String, String>>
fun classesToPages(namespace: Namespace, queryResult: ClassResults): <Error class: unknown class>

Given a set of result classes, format them into a list of pages for the paginator.

Link copied to clipboard
fun classMatchesToPages(outputContainer: MappingsContainer, matches: List<Pair<Class, Class>>, locale: Locale): List<String>

Given a set of class mapping matches, format them into a list of pages for the paginator.

Link copied to clipboard
fun fieldMatchesToPages(outputContainer: MappingsContainer, matches: List<Pair<MemberEntry<Field>, MemberEntry<Field>>>, locale: Locale): List<String>

Given a set of field mapping matches, format them into a list of pages for the paginator.

Link copied to clipboard
fun fieldsToPages(namespace: Namespace, mappings: MappingsContainer, fields: List<MemberEntry<Field>>, mapDescriptors: Boolean = true): List<Pair<String, String>>
fun fieldsToPages(namespace: Namespace, mappings: MappingsContainer, queryResult: QueryResult<MappingsContainer, FieldResultList>, mapDescriptors: Boolean = true): <Error class: unknown class>

Given a set of result fields, format them into a list of pages for the paginator.

Link copied to clipboard
fun methodMatchesToPages(outputContainer: MappingsContainer, matches: List<Pair<MemberEntry<Method>, MemberEntry<Method>>>, locale: Locale): List<String>

Given a set of method mapping matches, format them into a list of pages for the paginator.

Link copied to clipboard
fun methodsToPages(namespace: Namespace, mappings: MappingsContainer, methods: List<MemberEntry<Method>>, mapDescriptors: Boolean = true): List<Pair<String, String>>
fun methodsToPages(namespace: Namespace, mappings: MappingsContainer, queryResult: QueryResult<MappingsContainer, MethodResultList>, mapDescriptors: Boolean = true): <Error class: unknown class>

Given a set of result methods, format them into a list of pages for the paginator.

Link copied to clipboard
fun String.toNamespace(locale: Locale): Namespace

Turn this String into a Namespace.