UtilKt

public final class UtilKt

Properties

Link copied to clipboard
private final static Integer comparatorOutputWorkaround

Computes the comparator output of a lectern based on its screen.

Link copied to clipboard
private final static CharArray delimiters

Default delimiters of lists in OptiGUI and OptiFine resources.

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

Computes the comparator output based on the screen's inventory.

Link copied to clipboard
Link copied to clipboard
public final CharArray getDelimiters()

Default delimiters of lists in OptiGUI and OptiFine resources.

Link copied to clipboard
public final static Boolean isSuperOf(Class<?> $self, Object obj)

Checks if the receiver of the function is a superclass or superinterface of obj.

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.