I am currently getting into Spigot Pugin developement and need to access GameProfile, because I need it for a plugin (Stuff for changing Skins). I'm using Eclipse.
Now, I've watched a whole ton of tutorials in which GameProfile was used, and all these tutorials just went for
import com.mojang.authlib.GameProfile;
or
import net.minecraft.util.SOMETHINGLONG.GameProfile
without needing to explain anything why this line is possible.
Here is a guy that had the same problem like me with the second command but apparently could solve it with the first one, so im trying to get this one running. https://www.spigotmc.org/threads/how-to-import-net-minecraft-util.252371/.
If I try to include stuff like this, I see com.google.common
, com.oracle
and com.sun
but com.mojang is nowhere to be seen. I found it has to do something with the .jar files you add to your project, but I don't know how to get com.mojang... into the importable files.