27 Commits

Author SHA1 Message Date
Nathan Adams
ea3e91b416 Configurations now properly support lists of serializable objects, and ItemStack is properly serializable. Big thanks to GICodeWarrior for the PR. This fixes BUKKIT-425 2012-01-15 11:15:58 +00:00
Nathan Adams
f442a92c1e ItemStack.getMaxStackSize no longer incorrectly returns -1 when not backed by an NMS instance. Thanks to feildmaster for the PR. This fixes BUKKIT-530 2012-01-15 10:00:27 +00:00
EvilSeph
30bb875342 Fixed NPE in ItemStack. Thanks jascotty2! 2012-01-07 19:58:26 -05:00
Erik Broes
b9fca3c04d Generic cleanup of warnings, whitespace and style. 2011-12-25 16:02:30 +01:00
Nathan Adams
72135a8e83 BREAKING: ItemStack no longer implements Serializable 2011-12-12 23:19:03 +00:00
Nathan Adams
349ddd27b7 Fixed issue adding mass enchantments to items 2011-11-27 03:58:12 +00:00
Nathan Adams
693dfdbe8f Added utility methods to ItemStack to allow mass adding of enchantments 2011-11-27 02:45:08 +00:00
Nathan Adams
24804f6419 Made ItemStack .equals take into account data and enchantments 2011-11-27 02:25:12 +00:00
Nathan Adams
aba0bbc70f Added Enchantment API 2011-11-27 01:35:47 +00:00
Dinnerbone
ee27cc07f0 Added new Configuration classes 2011-10-10 21:06:34 +01:00
Dinnerbone
fe4f4c5f58 Many javadoc fixes thanks to Celtic Minstrel 2011-09-25 02:56:40 +01:00
Erik Broes
992f1f2bf3 Whitespace + general cleanup 2011-05-15 14:06:02 +02:00
sk89q
b87835c16d Added dispenser event. 2011-05-08 02:57:26 -07:00
Raphfrk
5956abc439 Added setArmorContents as a method for PlayerInventory. 2011-05-02 02:08:06 -04:00
Celtic Minstrel
6ed9db18b7 Add recipe classes and an addRecipe method in the server interface. 2011-05-01 23:40:15 -04:00
Erik Broes
b39503de71 Updated README for line-ending demands, also fixed line-endigs. 2011-04-25 13:24:32 +02:00
EvilSeph
cba06d412f Fixed getData() not returning the correct values. 2011-04-25 07:17:12 -04:00
VictorD
aa0614d785 Added a few null pointer checks and performed minor touchups (tried improving a few equals, clone and hashCode methods). 2011-03-05 12:27:51 +01:00
Limb
2834a41f3a Implemented Inventory.contains with a minimum amount of item required. As per feature request #187 2011-02-04 04:06:04 +08:00
Erik Broes
01988e8f6b General cleanup (deprecated+whitespace) 2011-02-02 00:28:41 +01:00
Dinnerbone
9ac3600a07 Renamed ItemStack.set/getDamage to durability, which is now a short. Added Material.getMaxDurability 2011-01-31 01:06:53 +00:00
Tahg
5c70e86d89 fixed storage of data field 2011-01-17 17:39:27 -05:00
Erik Broes
13ded78086 Updated Inventory with proper generics, fixed ItemStack to have data as 'Byte' so we can put in nulls when not having data. 2011-01-17 01:50:33 +01:00
Erik Broes
8a9d21c7f3 Added Invenrory.removeItem(ItemStack...) 2011-01-16 16:10:32 +01:00
sk89q
757fc26e4a Added item-in-hand related API. 2011-01-15 19:33:19 -08:00
sk89q
d84827914b Added setContents() to Inventory. 2011-01-15 14:41:25 -08:00
Dinnerbone
ec69ae1033 All inventory stuff in org.bukkit moved to org.bukkit.inventory 2011-01-15 21:27:40 +00:00