Dirty Quilt Hacks

Dirty Quilt Hacks

Gives access to a lot of reflective tooling.

by
1.6K Downloads
fabricforgequiltcursedutility
Rent Server with this Mod

About this Mod

A small library built as a Quilt mod which gives modders access to Unsafe (both the sun one and the jdk internal one, assuming it's exported at compile time) and easily supports runtime module exporting and trusted MethodHandles.Lookup calls.

Current features

  • Unsafe.sun() for a sun.misc.Unsafe instance
  • Unsafe.jdk() for a jdk.internal.misc.Unsafe instance (needs export — see below)
  • Unsafe.lookup() for the trusted MethodHandles.Lookup instance
  • Field getting and setting with force
  • Enum widening
  • Function accessor for allowing runtime use of JDK's internal ASM copy
  • Shortcut methods for getting MethodHandle instances through the trusted lookup
  • Runtime module exporting / opening
  • Forceful SecurityManager setting

Exporting modules

At runtime, call ModuleWidener.exportModule with either a class in the requested package, a class in the module and a string of the package, or the module instance and a string of the package.

At compile time, use javac compile arguments:

tasks.withType(JavaCompile).configureEach {
    it.options.compilerArgs << "addExports" << "TheModuleGoesHere/ThePackageToExport=ALL-UNNAMED"
    // This cannot be used with the release field. Instead use source / target compatibility fields in the java object.
}

Available Versions

0.2.0release
MC 21w19a, 21w20a, 1.17-pre1, 1.17-pre2, 1.17-pre3, 1.17-pre4, 1.17-pre5, 1.17-rc1, 1.17-rc2, 1.17, 1.17.1-pre1, 1.17.1-pre2, 1.17.1-pre3, 1.17.1-rc1, 1.17.1-rc2, 1.17.1, 21w37a, 21w38a, 21w39a, 21w40a, 21w41a, 21w42a, 21w43a, 21w44a, 1.18-pre1, 1.18-pre2, 1.18-pre3, 1.18-pre4, 1.18-pre5, 1.18-pre6, 1.18-pre7, 1.18-pre8, 1.18-rc1, 1.18-rc2, 1.18-rc3, 1.18-rc4, 1.18, 1.18.1-pre1, 1.18.1-rc1, 1.18.1-rc2, 1.18.1-rc3, 1.18.1, 22w03a, 22w05a, 22w06a, 22w07a, 1.18.2-pre1, 1.18.2-pre2, 1.18.2-pre3, 1.18.2-rc1, 1.18.2, 22w11a, 22w12a, 22w13a, 22w13oneblockatatime, 22w14a, 22w15a, 22w16a, 22w16b, 22w17a, 22w18a, 22w19a, 1.19-pre1, 1.19-pre2, 1.19-pre3, 1.19-pre4, 1.19-pre5, 1.19-rc1, 1.19-rc2, 1.19, 22w24a, 1.19.1-pre1, 1.19.1-rc1, 1.19.1-pre2, 1.19.1-pre3, 1.19.1-pre4, 1.19.1-pre5, 1.19.1-pre6, 1.19.1-rc2, 1.19.1-rc3, 1.19.1fabric, forge, quilt
August 2, 2022
0.1.1release
MC 21w19a, 21w20a, 1.17-pre1, 1.17-pre2, 1.17-pre3, 1.17-pre4, 1.17-pre5, 1.17-rc1, 1.17-rc2, 1.17, 1.17.1-pre1, 1.17.1-pre2, 1.17.1-pre3, 1.17.1-rc1, 1.17.1-rc2, 1.17.1, 21w37a, 21w38a, 21w39a, 21w40a, 21w41a, 21w42a, 21w43a, 21w44a, 1.18-pre1, 1.18-pre2, 1.18-pre3, 1.18-pre4, 1.18-pre5, 1.18-pre6, 1.18-pre7, 1.18-pre8, 1.18-rc1, 1.18-rc2, 1.18-rc3, 1.18-rc4, 1.18, 1.18.1-pre1, 1.18.1-rc1, 1.18.1-rc2, 1.18.1-rc3, 1.18.1, 22w03a, 22w05a, 22w06a, 22w07a, 1.18.2-pre1, 1.18.2-pre2, 1.18.2-pre3, 1.18.2-rc1, 1.18.2, 22w11a, 22w12a, 22w13a, 22w13oneblockatatime, 22w14a, 22w15a, 22w16a, 22w16b, 22w17a, 22w18a, 22w19a, 1.19-pre1, 1.19-pre2, 1.19-pre3, 1.19-pre4, 1.19-pre5, 1.19-rc1, 1.19-rc2, 1.19, 22w24a, 1.19.1-pre1, 1.19.1-rc1, 1.19.1-pre2, 1.19.1-pre3, 1.19.1-pre4, 1.19.1-pre5, 1.19.1-pre6, 1.19.1-rc2, 1.19.1-rc3, 1.19.1fabric, forge, quilt
July 30, 2022

How to Install Dirty Quilt Hacks on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.19.1).

3

Install Mod

Open the mod browser in the dashboard and search for "Dirty Quilt Hacks". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabricforgequilt

Minecraft Versions

1.19.1, 1.19.1-rc3, 1.19.1-rc2 (+78 more)

Server-side

~ Optional

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Dirty Quilt Hacks server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.19.1). You can switch loaders with one click in the panel.

Is Dirty Quilt Hacks compatible with fabric and forge and quilt?

Dirty Quilt Hacks officially supports fabric, forge, quilt for Minecraft 1.19.1, 1.19.1-rc3, 1.19.1-rc2. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Dirty Quilt Hacks – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Dirty Quilt Hacks consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Dirty Quilt Hacks with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
Mozilla Public License 2.0
Server-side
Optional

Supported Versions

1.19.11.19.1-rc31.19.1-rc21.19.1-pre61.19.1-pre51.19.1-pre41.19.1-pre31.19.1-pre21.19.1-rc11.19.1-pre1+71 more