Posted February 10, 20223 yr Hello! I create a only server-side mod and i have problem with my ide. ModLoadingContext.get().registerExtensionPoint(ExtensionPoint.DISPLAYTEST, () -> Pair.of(() -> FMLNetworkConstants.IGNORESERVERONLY, (a, b) -> true)); My IDE tells "Target type of a lambda conversion must be an interface" My imports here: import com.mojang.datafixers.util.Pair; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.ExtensionPoint; import net.minecraftforge.fml.ModLoadingContext; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.network.FMLNetworkConstants; Minecraft 1.16.5
February 10, 20223 yr Author Sorry, I've only been learning java for 3 months and recently started learning lambda expressions, could you help me and tell me what's wrong with this code.
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.