58 Commits

Author SHA1 Message Date
Edmond Poon
f8353cf498 Pulling all pending Bukkit-JavaDoc changes 2013-03-20 00:42:05 -04:00
GJ
1edebf7bcb Add an enum for Nether Wart growth stages. Adds BUKKIT-1599 2013-03-19 02:21:18 -04:00
feildmaster
05c2c55fce Improve javadoc in 26 files.
Addresses:
BUKKIT-1643, BUKKIT-1868, BUKKIT-1846, BUKKIT-2632, BUKKIT-3196,
BUKKIT-3187, BUKKIT-3198, BUKKIT-3200, BUKKIT-3201 and BUKKIT-3417.
2013-01-22 16:41:00 -06:00
Wesley Wolfe
1c32f29760 Clarify dye and wool color datas in DyeColor. Addresses BUKKIT-2786
DyeColor used the wool data for getData(), which is very misleading based
on class name. The old method has been deprecated and replaced with
getWoolData() and getDyeData() for the appropriate types of data values.

The MaterialData classes Dye and Wool were updated appropriately,
especially Dye innapropriately using a DyeColor data value compensation.

Unit tests were added for the new methods, as well as the getColor on Dye
and Wool.
2013-01-05 17:20:39 -06:00
feildmaster
e48765bafb Fix MaterialData directions being incorrect. Fixes BUKKIT-3160
Prior to 49690f9, BlockFaces were mostly correct in their respective
MaterialData classes. However, a lot of things were not updated since
implementation and broke without being addressed.

This fixes any discrepancies with Block data.
2012-12-18 03:25:00 -06:00
feildmaster
1a5998a5d5 [BREAKING] Update BlockFace directions. Fixes BUKKIT-1567, BUKKIT-3069
If you use BlockFace in any way, to compensate the directionals being incorrect, you can still have backwards compatibility if you add in the handling in your plugin:
boolean legacyBlockFace = BlockFace.NORTH().getModX() == -1; (and then handle it accordingly)

If you didn't special case your directions to fix what's being fixed here... Hurray! Your plugin should now work.
2012-12-01 01:06:29 -06:00
Travis Watkins
a446bb7e8f Update Bukkit for Minecraft 1.4(.2) changes. 2012-10-27 22:15:59 -04:00
Wesley Wolfe
6bbeb93103 Let TripwireHook be attachable. Addresses BUKKIT-2278
This commit also makes TripwireHook consistent with other attachables
for the facing property.
2012-08-17 14:33:23 -05:00
Wesley Wolfe
9528f47727 Change inheritance for new MaterialData. 2012-08-05 22:01:54 -05:00
Mike Primm
91de17c900 [Bleeding] Add new MaterialData classes for new blocks and update existing blocks with new data 2012-08-05 19:55:46 -05:00
Wesley Wolfe
6650625987 Add new SmoothBrick texture; Addresses BUKKIT-1417 2012-03-31 08:37:32 -05:00
Wesley Wolfe
6240b9a37c Fix Wood(plank) and add Sandstone MaterialData; addresses BUKKIT-1384 2012-03-31 08:35:59 -05:00
Wesley Wolfe
7ce3a4dbcc [Bleeding] Add null check to getFacing(); Fixes BUKKIT-1249 2012-03-27 20:38:03 -04:00
Mike Primm
38588a1df1 [Bleeding] Correct errors in LongGrass and MonsterEggs materials. Addresses BUKKIT-1083 2012-03-08 16:05:42 -05:00
Celtic Minstrel
24f43ae5a6 [Bleeding] MaterialData fixes. Addresses BUKKIT-842 2012-03-01 01:31:00 -05:00
Wesley Wolfe
3bb6fa8849 [Bleeding] Cleanup clone methods. 2012-02-20 05:47:03 -05:00
Erik Broes
88c17a7f86 Generic cleaning 2012-01-15 14:37:43 +01:00
Nathan Adams
87ee353d4d Fixed Leaves.getSpecies returning null on higher data values. Thanks to Wolvereness for the PR. 2012-01-15 07:33:02 +00:00
Erik Broes
b9fca3c04d Generic cleanup of warnings, whitespace and style. 2011-12-25 16:02:30 +01:00
Nathan Adams
4485364e17 Small javadoc cleanup 2011-10-10 21:58:44 +01:00
Dinnerbone
80b7d27d23 Added MonsterEggs materialdata 2011-09-25 15:27:16 +01:00
Celtic Minstrel
1002e546a4 Remove Jukebox MaterialData in favour of Jukebox BlockState 2011-09-25 03:51:09 +01:00
Dinnerbone
fe4f4c5f58 Many javadoc fixes thanks to Celtic Minstrel 2011-09-25 02:56:40 +01:00
sunkid
e7d0831d41 added support for SmoothBrick and changed steps to a TexturedMaterial 2011-09-25 02:47:47 +01:00
EvilSeph
872c3a34ab Fixed setFacingDirection and removed redundant interface. Thanks DiddiZ! 2011-07-14 14:48:58 -04:00
sunkid
6bcad55b31 Added additional BlockFace enum members and fixed Sign class. 2011-07-14 11:36:27 -04:00
Dinnerbone
542376d7b3 Update to 1.7 2011-06-30 15:18:11 +01:00
sunkid
4b5a3689d9 Added setters to applicable MaterialData classes. 2011-06-17 01:39:30 -04:00
Dinnerbone
0468c8e89e Removing 14 deprecated methods per http://bit.ly/mO2f4d 2011-06-16 22:06:18 +01:00
Erik Broes
0ac6a0bfe6 Generic cleanup 2011-06-12 12:49:08 +02:00
EvilSeph
91b68e82cf Added .equals() and .hashCode() to MaterialData. Thanks Edoxile! 2011-06-08 17:49:40 -04:00
EvilSeph
1b44a3fbd1 Fixed TrapDoor and added MaterialData for LONG_GRASS. Thanks sunkid! 2011-06-07 02:15:55 -04:00
Dinnerbone
8a6ea6ffdc Added new Materials 2011-05-26 13:45:55 +01:00
Erik Broes
992f1f2bf3 Whitespace + general cleanup 2011-05-15 14:06:02 +02:00
sunkid
fc035ee709 Added MaterialData support for SAPPLING, POWERED_RAIL, and DETECTOR_RAIL. 2011-04-25 17:17:21 -04:00
Erik Broes
b39503de71 Updated README for line-ending demands, also fixed line-endigs. 2011-04-25 13:24:32 +02:00
sunkid
3d0781c8bf Ton of Material extensions handling the meta-data of blocks. 2011-04-03 11:28:19 +02:00
Celtic Minstrel
04cddaa47a Add material data classes for cake, jukeboxes, and diodes. Remove some unneeded ones. 2011-03-26 18:23:43 +01:00
Erik Broes
6598b0ce5f Fixed missing breaks breaking stuff. 2011-03-26 16:53:39 +01:00
sunkid
36df268478 added the MaterialData subclass Door 2011-03-25 23:07:34 +01:00
sunkid
7e8118c81d added MaterialData classes and associated Enums for COAL, CROPS, LOG, LEAVES, STEP, and DOUBLE_STEP 2011-03-21 17:25:34 +01:00
Andrew Ardill
7e5e89b744 Added Colorable interface, and made Sheep, Wool and Dye implement it.
Inspired by xpansive
2011-02-12 12:28:38 +11:00
Tal Eisenberg
c36a98db64 Fixed Button/Lever, using a logical AND instead of XOR to get 3 face bits 2011-02-12 00:19:59 +01:00
Erik Broes
01988e8f6b General cleanup (deprecated+whitespace) 2011-02-02 00:28:41 +01:00
Dinnerbone
5f407c11a2 Fixed Button and Lever MaterialData returning incorrect getAttachedFace() 2011-01-20 01:14:49 +00:00
Dinnerbone
ba635ade10 Moved block stuff from org.bukkit to org.bukkit.block 2011-01-15 21:37:08 +00:00
Dinnerbone
ec69ae1033 All inventory stuff in org.bukkit moved to org.bukkit.inventory 2011-01-15 21:27:40 +00:00
Dinnerbone
194ef1a5d4 Added Sign MaterialData 2011-01-15 21:12:14 +00:00
Dinnerbone
d923cd8c37 Added Button MaterialData 2011-01-15 20:58:34 +00:00
Dinnerbone
f56a6d31d7 Added Lever MaterialData 2011-01-15 20:51:16 +00:00