Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

A Gradle plugin that adds Quiltflower as a Loom 0.10 decompiler.

License

Notifications You must be signed in to change notification settings

Juuxel/loom-quiltflower-mini

Repository files navigation

loom-quiltflower-mini

Maven metadata

loom-quiltflower-mini is deprecated. Please update your Loom to 0.11 or newer and use loom-quiltflower, which is much more customisable.


A Loom addon that adds Quiltflower as a Loom decompiler for Loom 0.10.

This is a separate plugin from the "real" loom-quiltflower because Loom 0.10 essentially removed the decompiler API as it is used in loom-quiltflower. This plugin has less configuration options but should still be completely fine for most users.

Getting started

  1. Add the Cotton maven repository to settings.gradle:
  pluginManagement {
      repositories {
          maven {
              name = 'Fabric'
              url = 'https://maven.fabricmc.net/'
          }
+         maven {
+             name = 'Cotton'
+             url = 'https://server.bbkr.space/artifactory/libs-release/'
+         }
          gradlePluginPortal()
      }
  }
  1. Add loom-quiltflower to your plugins:
  plugins {
      id 'fabric-loom' version '0.10-SNAPSHOT'
+     id 'io.github.juuxel.loom-quiltflower-mini' version '1.3.0'
      id 'maven-publish'
  }
  1. Instead of genSources, you can now use genSourcesWithQuiltflower.

Configuration

Runtime classpath

Added in LQFm 1.1.0.

You can add Quiltflower to the runtime classpath with a single property to use it for decompiling mixins:

quiltflower {
    addToRuntimeClasspath.set(true)
}

You also need the system property mixin.debug or mixin.debug.decompile in your run configurations.

Decompiler options

The options passed to Quiltflower can be configured using their three-letter IDs.

genSourcesWithQuiltflower {
    // fake option: don't try at home
    options.put('abc', '123')
}

There are some Quiltflower-specific flags that are listed below. Note that 1 means true/enabled and 0 means false/disabed.

ID Description Default
isl Collapse single-line lambdas 1
jvn Use JAD-style local variable naming from ForgeFlower 0
pam Pattern matching support 1
tlf Experimental fix for interactions between try and loops 1

About

A Gradle plugin that adds Quiltflower as a Loom 0.10 decompiler.

Resources

License

Stars

Watchers

Forks

Packages

No packages published