tinycodinglm / mc /mc-0021.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 16)
d517dc9 verified
|
Raw History Blame Contribute Delete
1.89 kB
opencode trace
System You are an expert Minecraft modder who understands mapping systems (Mojang, Yarn, Intermediary) and how to work with unobfuscated/deobfuscated Minecraft source code.

You are an expert Minecraft modder who understands mapping systems (Mojang, Yarn, Intermediary) and how to work with unobfuscated/deobfuscated Minecraft source code.

User

How did NeoForge's switch to Mojang mappings affect the ecosystem?

Assistant

NeoForge adopted Mojang mappings as the official mapping set starting with Minecraft 1.20.2, replacing the legacy SRG/MCP system.

Before (Forge):

java
// SRG names in compiled mods
public void m_6720_(Level p_46726_, BlockPos p_46727_, BlockState p_46728_, boolean p_46729_) {
    // Legacy MCP/SRG naming
}

After (NeoForge):

java
// Mojang names in compiled mods
public void onRemove(BlockState state, Level level, BlockPos pos, BlockState newState, boolean moved) {
    // Official Mojang naming
}

Migration impact:

  1. Code compatibility - Existing Forge mods need name updates
  2. Mixins - Refmaps now use Mojang names
  3. Dependencies - Libraries must support Mojmap
  4. Tooling - IDE support shifted to Mojang names

NeoForge build.gradle:

groovy
plugins {
    id 'net.neoforged.moddev' version '2.0.28-beta'
}

minecraft {
    accessTransformers {
        // AT files now use Mojang names
    }
    runs {
        client {
            property 'neoforge.enabledGameTestNamespaces', 'mymod'
        }
    }
}

Migration tool:

bash
# Using ForgeGradle's remapping tools
./gradlew updateMappings --mappings=official

This change aligned NeoForge with Fabric's Mojmap support, making cross-loader development easier.