I am trying to update my clientside mod to 1.20.4, however there seems to be some issue with the sides aspect.
ModLoadingContext.get().registerExtensionPoint(IExtensionPoint.DisplayTest.class, () -> new IExtensionPoint.DisplayTest(() -> NetworkConstants.IGNORESERVERONLY, (a, b) -> true));
According to the documentation, this code is correct, however it does not compile.
Multiple markers at this line
-NetworkConstants cannot be resolved to a variable
-The constructor IExtensionPoint.DisplayTest(() -> {}, (<no type> a, <no type> b) => {}) is undefined
The import net.minecraftforge.network.NetworkConstants cannot be resolved
How do I make a 1.20.4 mod clientside only?