MinecraftForge / ForgeGradle

Minecraft mod development framework used by Forge and FML for the gradle build system
GNU Lesser General Public License v2.1
509 stars 437 forks source link

Official Mojang Mappings not working #795

Closed warjort closed 3 years ago

warjort commented 3 years ago

Using mappings channel "official" doesn't generate classes with the official mojang mappings.

Steps to reproduce:

$ jar -tf forge-1.16.5-36.1.0_mapped_official_1.16.5.jar | grep AbstractBlock
net/minecraft/block/AbstractBlock.class
net/minecraft/block/AbstractBlock$AbstractBlockState$Cache.class
net/minecraft/block/AbstractBlock$1.class
net/minecraft/block/AbstractBlock$AbstractBlockState.class
net/minecraft/block/AbstractBlock$OffsetType.class
net/minecraft/block/AbstractBlock$Properties.class
net/minecraft/block/AbstractBlock$IExtendedPositionPredicate.class
net/minecraft/block/AbstractBlock$IPositionPredicate.class

$ jar -tf forge-1.16.5-36.1.0_mapped_official_1.16.5-recomp.jar | grep AbstractBlock
net/minecraft/block/AbstractBlock$1.class
net/minecraft/block/AbstractBlock$AbstractBlockState$Cache.class
net/minecraft/block/AbstractBlock$AbstractBlockState.class
net/minecraft/block/AbstractBlock$IExtendedPositionPredicate.class
net/minecraft/block/AbstractBlock$IPositionPredicate.class
net/minecraft/block/AbstractBlock$OffsetType.class
net/minecraft/block/AbstractBlock$Properties.class
net/minecraft/block/AbstractBlock.class

In the official mappings AbstractBlock is called BlockBehaviour and is in a different package.

You might need to clear this part of your gradle cache to reproduce this problem.

ChampionAsh5357 commented 3 years ago

Class names are not applied in 1.16.5 to maintain binary compat with other versions of 1.16 becauce of how MCPConfig was designed. They will be changed in 1.17.

warjort commented 3 years ago

Ok thanks, maybe you can update the docs to say it doesn't work, yet...?

ChampionAsh5357 commented 3 years ago

The omnibus PR is already aware and has documented this, it just hasn't been reviewed yet.