architectury / architectury-loom

A Gradle plugin to setup environments for Fabric, Forge, NeoForge and Quilt modding.
https://docs.architectury.dev/loom/introduction
MIT License
115 stars 41 forks source link

NeoForge's @ExpectPlatform not working #243

Closed CSneko closed 1 month ago

CSneko commented 1 month ago

Environment;

loom version: 1.7-SNAPSHOT architectury-plugin version: 3.4-SNAPSHOT enabled platforms: fabric,neoforge minecraft version: 1.21

Detailed Description

I created a method with @ExpectPlatform in org.cneko.toneko.common.mod.misc.ToNekoAttributes and returned null, then implemented it in org.cneko.toneko.common.mod.misc.fabric.ToNekoAttributesImpl and org.cneko.toneko.common.mod.misc.neoforge.ToNekoAttributesImpl, but only Fabric worked, not NeoForge.

But the interesting thing is that if I change its package path to org.cneko.toneko.common.mod.misc.forge.ToNekoAttributesImpl, the following error will be thrown at runtime: java.lang.NoClassDefFoundError: org.cneko.toneko.common.mod.misc.neoforge.ToNekoAttributesImpl

CSneko commented 1 month ago

Sorry, this seems to be just some of my problems