Imports

Discussion in 'Plugin Development' started by Double0negative, Dec 8, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Double0negative

    I have a question about what to import when im writing plugins. When using Eclipse for a lot of the things it gives me the option to import from org.bukkit or net.minecraft.server

    Which should i be using?
     
  2. Offline

    halley

    Almost always org.bukkit, and almost never org.bukkit.craftbukkit. Unless you're trying to take advantage of "under the covers" undocumented hacks involving individual packets to the client, you don't need the embedded Mojang-derived net.minecraft classes at all.
     
  3. Offline

    Double0negative

    Ah, thanks for the help. My guess was we should be using the bukkit import since were using the Bukkit api and all, but thanks for clearning that up
     
Thread Status:
Not open for further replies.

Share This Page