question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Would it be good to be able to use a Minecraft jar (as the one you control-click into in the IDE) that has mixins visibly applied?

See original GitHub issue

Place your votes

EDIT: Just to be clear what this does: Old:

void doMinecraftThing() {
    // Prints "Minecraft Fabric edition"
    System.out.println("Minecraft Java Edition");
}

New:

void doMinecraftThing() {
    // Prints "Minecraft Fabric edition"
   redirectorMixin();
}   

void redirectorMixin(){
     System.out.println("Minecraft Fabric Edition");
}

(A mixin is injected at this point that redirects the println to println("Minecraft Fabric Edition"))

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:10
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
modmuss50commented, Jan 1, 2020

One idea I came up with to incrase mixin visablity would be to add a comment to each class saying what mixins target the class.

Would look something like this:

/**
 * Mixins:
 *     fabric-blockrenderlayer-v1: {@link net.fabricmc.fabric.mixin.blockrenderlayer.MixinBlockRenderLayer}
 */
class BlockRenderLayer {

}

This would require loom to look though the deps to find what mixins target each class, it might take a second or two, but I dont think it would be a major issue as it would only need to happen when using genSources.

3reactions
BucketOfCompassescommented, Dec 22, 2019

Yes, If mixin source is still visible in other file and its clear where the mixin is and where it originates from. e.g.

// Begin net.fabricmc....WorldMixin.java
mixin code here
// End net.fabricmc....WorldMixin.java
Read more comments on GitHub >

github_iconTop Results From Across the Web

sitemap-questions-66.xml - Stack Overflow
... -character-encoding-is-utf-8-well-supported-by-browsers-or-should-i-use-nu ... questions/4526461/converting-select-results-into-insert-script-sql-server ...
Read more >
vs code open tab in new window Code Example - Code Grepper
how to open new tab in vscode using keyboard ... xxxxxxxxxx. 1. ctr + k, o // open the current file in a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found