Attaching NMS to Eclipse project

Discussion in 'Spigot Plugin Development' started by KuramaStone, Dec 16, 2019.

  1. I'm getting ready to make an NMS heavy project in Eclipse, and I'd like to be able to attach the source NMS to it. I have the buildtools work/Spigot attached which lets me see the Spigot source files, but I'd like to be able to view the NMS ones as well.

    Although there is the NMS code available, the path to EntityZombie is
    Code (Java):
    net.minecraft.server.v1_14_R1.EntityZombie
    while the NMS code in there only has
    Code (Java):
    net.minecraft.server.EntityZombie
    . Is there any way to redirect Eclipse's search to the path available?

    One solution I found for this is to make a copy of the NMS server folder in a directory on that path. It worked, but I'm still wondering if there is a more elegant solution.
     
  2. Um, never tried this but maybe add the 'work' directory as an external class folder? Thats where the decompiled NMS stuff is located