From bc0d7179ccaf936b0a3572a844284fd6c8a591ea Mon Sep 17 00:00:00 2001 From: Leon Linhart Date: Tue, 3 May 2022 19:38:28 +0200 Subject: [PATCH] Update IExtensionPoint javadoc to be correct (#8568) --- .../main/java/net/minecraftforge/fml/IExtensionPoint.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fmlcore/src/main/java/net/minecraftforge/fml/IExtensionPoint.java b/fmlcore/src/main/java/net/minecraftforge/fml/IExtensionPoint.java index 7a81e86c03..ff14349e71 100644 --- a/fmlcore/src/main/java/net/minecraftforge/fml/IExtensionPoint.java +++ b/fmlcore/src/main/java/net/minecraftforge/fml/IExtensionPoint.java @@ -18,7 +18,7 @@ public interface IExtensionPoint * The predicate tests the version from a remote instance or save for acceptability (Boolean is true for impl, false for local save) * and returns true if the version is compatible. * - *

Return {@code net.minecraftforge.impl.impl.FMLNetworkConstants#IGNORESERVERONLY} in the supplier, if you wish to be ignored + *

Return {@code net.minecraftforge.network.NetworkConstants#IGNORESERVERONLY} in the supplier, if you wish to be ignored * as a server side only mod.

*

Return true in the predicate for all values of the input string (when impl boolean is true) if you are client side, * and don't care about matching any potential server version.

@@ -27,8 +27,8 @@ public interface IExtensionPoint * Examples: A server only mod *

*
{@code
-     *     registerExtensionPoint(DISPLAYTEST, ()->Pair.of(
-     *      ()->FMLNetworkConstants.IGNORESERVERONLY, // ignore me, I'm a server only mod
+     *     registerExtensionPoint(DisplayTest.class, ()->new DisplayTest(
+     *      ()->NetworkConstants.IGNORESERVERONLY, // ignore me, I'm a server only mod
      *      (s,b)->true // i accept anything from the server or the save, if I'm asked
      *     )
      * }
@@ -37,7 +37,7 @@ public interface IExtensionPoint * Examples: A client only mod *

*
{@code
-     *     registerExtensionPoint(DISPLAYTEST, ()->Pair.of(
+     *     registerExtensionPoint(DisplayTest.class, ()->new DisplayTest(
      *      ()->"anything. i don't care", // if i'm actually on the server, this string is sent but i'm a client only mod, so it won't be
      *      (remoteversionstring,networkbool)->networkbool // i accept anything from the server, by returning true if it's asking about the server
      *     )