diff --git a/templates/architectury/common/src/main/java/net/examplemod/ExampleExpectPlatform.java b/templates/architectury/common/src/main/java/net/examplemod/ExampleExpectPlatform.java index 218cdd2..2e92a66 100644 --- a/templates/architectury/common/src/main/java/net/examplemod/ExampleExpectPlatform.java +++ b/templates/architectury/common/src/main/java/net/examplemod/ExampleExpectPlatform.java @@ -1,7 +1,7 @@ package net.examplemod; import dev.architectury.injectables.annotations.ExpectPlatform; -import dev.architectury.platform.Platform; +import @ARCHITECTURY_PACKAGE@.platform.Platform; import java.nio.file.Path; @@ -9,13 +9,15 @@ public class ExampleExpectPlatform { /** * We can use {@link Platform#getConfigFolder()} but this is just an example of {@link ExpectPlatform}. *
- * This must be a public static method. The platform-implemented solution must be placed under a + * This must be a public static method. The platform-implemented solution must be placed under a * platform sub-package, with its class suffixed with {@code Impl}. *
* Example: * Expect: net.examplemod.ExampleExpectPlatform#getConfigDirectory() * Actual Fabric: net.examplemod.fabric.ExampleExpectPlatformImpl#getConfigDirectory() * Actual Forge: net.examplemod.forge.ExampleExpectPlatformImpl#getConfigDirectory() + *
+ * You should also get the IntelliJ plugin to help with @ExpectPlatform. */ @ExpectPlatform public static Path getConfigDirectory() {