MCPcopy Index your code
hub / github.com/MaxPixelStudios/MinecraftDecompiler

github.com/MaxPixelStudios/MinecraftDecompiler @v3.3.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.3.2 ↗ · + Follow
599 symbols 1,373 edges 75 files 41 documented · 7%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Java CI with Maven Discord

MinecraftDecompiler

A useful tool/library to deobfuscate Minecraft using Proguard(official)/SRG/CSRG(Bukkit,Spigot,Paper)/TSRG(SRG 1.13+)/TSRG v2(SRG 1.16.5+)/Tiny(Intermediary, Yarn) mappings and decompile Minecraft using CFR/FernFlower/ForgeFlower/Any Decompiler You Like

Note: Java16 is required since v2.3. Java17 is required since v3.0

Progress: View the project and the milestone

For usage and more information, visit the wiki(Currently in progress)

Features

  1. Deobfuscate Minecraft using Proguard(Official) mappings, SRG, TSRG, CSRG and Tiny mappings
  2. Decompile Minecraft using CFR/Fernflower/ForgeFlower/Any Decompiler You Like
  3. Regenerate local variable names in JAD style
  4. Mapping IO

Community

Discord: https://discord.gg/pjQd8PVk3t
GH Discussions: https://github.com/MaxPixelStudios/MinecraftDecompiler/discussions
KOOK/开黑啦: https://kook.top/WI8xyn
QQ群(加群请注明理由: MinecraftDecompiler): 814722661

Special Thanks

JetBrains - Provide awesome IDEs and free licence codes

JetBrains

Extension points exported contracts — how you extend this code

Component (Interface)
Base component class. Every component must implement this interface [8 implementers]
src/main/java/cn/maxpixel/mcdecompiler/mapping/component/Component.java
IExternalResourcesDecompiler (Interface)
If your custom decompiler uses extra resources(executables, etc.) to work, implements this interface. [8 implementers]
src/main/java/cn/maxpixel/mcdecompiler/decompiler/IExternalResourcesDecompiler.java
ILibRecommendedDecompiler (Interface)
A decompiler implements this interface is lib-recommended [10 implementers]
src/main/java/cn/maxpixel/mcdecompiler/decompiler/ILibRecommendedDecompiler.java
Runnable_WithThrowable (Interface)
(no doc) [4 implementers]
src/main/java/cn/maxpixel/mcdecompiler/util/LambdaUtil.java
NameGetter (Interface)
(no doc) [3 implementers]
src/main/java/cn/maxpixel/mcdecompiler/mapping/NameGetter.java

Core symbols most depended-on inside this repo

map
called by 54
src/main/java/cn/maxpixel/mcdecompiler/asm/ClassifiedMappingRemapper.java
get
called by 54
src/main/java/cn/maxpixel/mcdecompiler/decompiler/Decompilers.java
getComponent
called by 33
src/main/java/cn/maxpixel/mcdecompiler/mapping/Mapping.java
hasComponent
called by 30
src/main/java/cn/maxpixel/mcdecompiler/mapping/Mapping.java
getLogger
called by 28
src/main/java/cn/maxpixel/mcdecompiler/util/Logging.java
equals
called by 25
src/main/java/cn/maxpixel/mcdecompiler/mapping/Mapping.java
get
called by 21
src/main/java/cn/maxpixel/mcdecompiler/util/VersionManifest.java
getName
called by 20
src/main/java/cn/maxpixel/mcdecompiler/asm/ClassProcessor.java

Shape

Method 488
Class 78
Interface 28
Enum 5

Languages

Java100%

Modules by API surface

src/main/java/cn/maxpixel/mcdecompiler/MinecraftDecompiler.java50 symbols
src/main/java/cn/maxpixel/mcdecompiler/asm/ClassProcessor.java24 symbols
src/main/java/cn/maxpixel/mcdecompiler/mapping/component/Descriptor.java20 symbols
src/main/java/cn/maxpixel/mcdecompiler/asm/ClassifiedMappingRemapper.java19 symbols
src/main/java/cn/maxpixel/mcdecompiler/mapping/component/LocalVariableTable.java18 symbols
src/main/java/cn/maxpixel/mcdecompiler/mapping/collection/ClassMapping.java18 symbols
src/main/java/cn/maxpixel/mcdecompiler/decompiler/thread/FernFlowerDecompileThread.java18 symbols
src/main/java/cn/maxpixel/mcdecompiler/util/MappingUtil.java17 symbols
src/main/java/cn/maxpixel/mcdecompiler/mapping/NamespacedMapping.java17 symbols
src/main/java/cn/maxpixel/mcdecompiler/util/Logging.java15 symbols
src/main/java/cn/maxpixel/mcdecompiler/asm/MixinClassRemapper.java15 symbols
src/main/java/cn/maxpixel/mcdecompiler/writer/MappingGenerator.java13 symbols

For agents

$ claude mcp add MinecraftDecompiler \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact