jstN0body Posted November 10, 2020 Posted November 10, 2020 (edited) 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, 2020 by jstN0body Quote
ChampionAsh5357 Posted November 10, 2020 Posted November 10, 2020 It works exactly as written. And yes, also in 1.16. Quote
jstN0body Posted November 10, 2020 Author Posted November 10, 2020 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. Quote
ChampionAsh5357 Posted November 10, 2020 Posted November 10, 2020 Check your imports. Usually that fixes the issue. 1 Quote
yeah123456789 Posted November 10, 2020 Posted November 10, 2020 What did you mean by "check your imports" because im also having the same issue in 1.16.3 Quote
ChampionAsh5357 Posted November 10, 2020 Posted November 10, 2020 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. Quote
Recommended Posts
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.