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
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 inorg.cneko.toneko.common.mod.misc.fabric.ToNekoAttributesImpl
andorg.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