Bukkit Dev Question: Adding MC server classes

Discussion in 'Plugin Development' started by Ramblurr, Mar 4, 2011.

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

    Ramblurr

    First, this is not related to plugin development, but rather CraftBukkit development. This seemed like the most appropriate forum.

    What is the procedure for adding a server class to CraftBukkit's net.minecraft.server package from mc-dev that isn't already there? Should I just copy the file from mc-dev into the appropriate directory under CraftBukkit?

    For those curious persons, the file I want to add is SlotResult and Container. I'm working on Inventory events.

    Edit: I've gotten it working by simply copying the appropriate .java file from mc-dev into the CraftBukkit source tree.
     
  2. Offline

    Jacob Litewski

    Yep. Maven is pretty cool about that.
     
  3. Offline

    Raphfrk

    If you are submitting a pull don't forget // CraftBukkit start and end comments, so they know what you changed.
     
  4. Offline

    Ramblurr

    Yea, I'll say. How does it prevent namespace clashes with all the net.minecraft.server classes in the jar?
     
Thread Status:
Not open for further replies.

Share This Page