UtilKt

public final class UtilKt

Functions

Link copied to clipboard
public final static String buildString(Function1<StringWriter, Unit> builderAction)
Link copied to clipboard
public final static String component1(Identifier $self)

Identifier deconstruction helper, which returns the namespace.

Link copied to clipboard
public final static String component2(Identifier $self)

Identifier deconstruction helper, which returns the path.

Link copied to clipboard
public final CharArray getDelimiters()

Default delimiters of lists in OptiGUI and OptiFine resources.

Link copied to clipboard
public final static List<String> splitIgnoreEmpty(CharSequence $self, Character delimiters)

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

Link copied to clipboard
public final static String trimParentheses(String $self)

Trim parentheses from the start and end of a string.

Link copied to clipboard
public final static FilterResult<TNew> withResult<TOld extends Any, TNew extends Any>(FilterResult<TOld> $self, TNew result)

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

Properties

Link copied to clipboard
private final static CharArray delimiters

Default delimiters of lists in OptiGUI and OptiFine resources.