FallenMoonNetwork / CanaryMod

Server administration mod and API for Minecraft beta multiplayer server
http://canarymod.net
GNU Lesser General Public License v3.0
20 stars 14 forks source link

Small fix for riding methods, and adding a big change to support slot click events and a few other things #94

Closed M4411K4 closed 11 years ago

M4411K4 commented 11 years ago

The SLOT_CLICK event is to help improve custom crafting in addition to giving much more power to slot control.

Most of the changes made are to support this new SLOT_CLICK event, such as storing OContainer in ItemArray classes. I attempted to add these changes in a way where it shouldn't break older plugins that may have directly tried creating ItemArray classes. This is also why I added the "getInventory()" overrides as a workaround to insert OContainer into older ItemArray classes. OContainer is needed to help define slots and send slot updates to the clients.

NOTE: My decompiler isn't the greatest, so some of the files I moved up into Canary (such as OContainerXX files) may need to be modified.

EDIT: forgot to mention that there are some more details about the changes within the 2 commits. Such as adding a Beacon block access for mods, adding in missing chests to OPEN_INVENTORY, and a couple small fixes to the passenger/vehicle stuff.

shadow386 commented 11 years ago

Appreciate the large additions, and will merge right away. Thanks!