Package-level declarations

Types

Link copied to clipboard

Represents an integer, or a start- and stop-inclusive integer range.

Link copied to clipboard
interface TexturePath
Texture paths for Minecraft containers
Link copied to clipboard

An indentation and tree formatter utility class.

Functions

Link copied to clipboard
fun Filter<*, *>.dump(): String

Formats a filter chain as a tree with ASCII characters, and returns the formatted string.

Link copied to clipboard

Check whether now is Christmas.

Link copied to clipboard
fun parseWildcardOrRegex(wildcardOrRegex: String): Regex

Parses a wildcard or regex compatible with OptiFine syntax.

Link copied to clipboard
fun resolvePath(resourcePath: String, path: String): Identifier?

Resolves a texture path starting at resourcePath if it's relative. Ported from v1 codebase. Legacy code, if it works, then don't touch it.

Link copied to clipboard
fun CharSequence.splitIgnoreEmpty(vararg delimiters: Char): List<String>

Splits a string at the given delimiters and returns every substring, which is not empty.

Link copied to clipboard

Trim parentheses from the start and end of a string.

Link copied to clipboard

Parses a villager profession compatible with OptiFine docs. In fact, it parses a superset (additional features): a namespace is optionally accepted in front.

Link copied to clipboard

If the current FilterResult is FilterResult.Match, change its result to the given one. Otherwise, return the original.