From bc0d7179ccaf936b0a3572a844284fd6c8a591ea Mon Sep 17 00:00:00 2001
From: Leon Linhart 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.
{@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{@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
* )