Skip to content

Instantly share code, notes, and snippets.

This defines a toSmallCaps function which converts the text in Adventure API Components to latin small caps.

private static final String[] small = "ᴀʙᴄᴅᴇꜰɢʜɪᴊᴋʟᴍɴᴏᴘǫʀѕᴛᴜᴠᴡxʏᴢ".split("");
private static final List<TextReplacementConfig> conversions = IntStream.range(0, 26)
        .mapToObj(i -> {
            Pattern p = Pattern.compile(String.valueOf(65 + i), Pattern.CASE_INSENSITIVE);
            return TextReplacementConfig.builder().match(p).replacement(small[i]).build();
        })
        .toList();
@TurboJax
TurboJax / tasks.md
Last active January 6, 2026 01:41
Turbo's Gradle Tasks

These are just gradle tasks I make that I think are kinda useful. Open to the public!

inject: Combines a source jar file and a second patch file. Useful when editing an existing jar file.

ext {
    sourceJar = <abs/relative path>
    patchedJar = <output>
}

task inject(type: Zip) {