Posted November 10, 20204 yr Basically the title, I'm just trying to figure out what to do to get this working in a 1.16.3 mod, I was going to use the snippet from the documentation, but it doesn't work in 1.16, anyone have an updated version? (here's the snippet from the docs) ModLoadingContext.get().registerExtensionPoint(ExtensionPoint.DISPLAYTEST, () -> Pair.of(() -> FMLNetworkConstants.IGNORESERVERONLY, (a, b) -> true)); Edited November 10, 20204 yr by jstN0body
November 10, 20204 yr Author 7 minutes ago, ChampionAsh5357 said: It works exactly as written. And yes, also in 1.16. Weird, IntelliJ is giving me an error saying lambda targets must be interfaces.
November 10, 20204 yr What did you mean by "check your imports" because im also having the same issue in 1.16.3
November 10, 20204 yr 38 minutes ago, yeah123456789 said: What did you mean by "check your imports" because im also having the same issue in 1.16.3 If you copy and paste the line directly and try to add imports automatically, the IDE assumes that the lambda inside is invalid first and doesn't apply the imports. So you will need to manually add the imports in or force the automatic import somewhere else.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.