76 Commits

Author SHA1 Message Date
Wesley Wolfe
8de050ae87 Update Bukkit for Minecraft 1.6.1 2013-07-01 05:50:24 -05:00
Travis Watkins
7d8585ee47 Correct 1.5 material data. Fixes BUKKIT-4004, BUKKIT-3785 2013-04-12 16:20:50 -05:00
Xephi
6b648d14ed Add Dropper BlockState. Adds BUKKIT-3750 2013-03-21 21:43:28 -06:00
nitnelave
a8f96663ee Added the hasGravity method to Blocks. Adds BUKKIT-3832 2013-03-20 18:49:25 -04:00
GJ
1edebf7bcb Add an enum for Nether Wart growth stages. Adds BUKKIT-1599 2013-03-19 02:21:18 -04:00
Wesley Wolfe
7dcf22262a Moved all specific minecart entities to sub-package.
This change is breaking for the new API for 1.5, including the interfaces for
the three new Minecart types and the name of the previously TNT_MINECART
material.

This change also deprecates the two previous specific minecart types located
in the org.bukkit.entity package. This deprecation is not a breaking change
and will still be internally supported.

Each minecart type has new javadoc to be slightly more descriptive. Included
with this are specific references to the interface for each respective
EntityType entry. Another package-info.java file has been included as well.

All specific minecart types extend minecart, each with a more descriptive
name. The naming will also follow the old convention. In addition, the
minecart with no specific designation is now more closely referred to as a
rideable minecart.
2013-03-16 02:30:31 -05:00
Travis Watkins
94fd04448d Update Bukkit for Minecraft 1.5 2013-03-15 13:26:46 -05:00
MikeMatrix
cdba964122 Added negative id check to Material.getMaterial(int). Fixes BUKKIT-3414
Negative id values would try to access the array out of bounds and throw an java.lang.ArrayIndexOutOfBoundsException.
2013-01-15 05:05:20 -06:00
feildmaster
d9f1255e1d Update Bukkit to Minecraft 1.4.6 2012-12-20 11:26:32 -06:00
Wesley Wolfe
c02306b55e Add ItemMeta factory and interfaces. This adds BUKKIT-15
Included with ItemMeta is a new serializable class Color.

PotionEffects are now serializable.
2012-12-17 01:16:28 -06:00
Wesley Wolfe
84912b5510 Add Material methods. Adds BUKKIT-3161, BUKKIT-3162, BUKKIT-3163,
BUKKIT-3164

This adds an isFlammable method, to indicate if a block can catch fire.

This adds an isTransparent method, to check if light can pass through.

This adds an isOccluding method, to check if it fully blocks vision.

This adds an isBurnable method, to indicate if a block can burn away.
2012-12-14 02:03:05 -06:00
Wesley Wolfe
18547e2634 Add isSolid() to Material. Adds BUKKIT-3131
A 'solid' material indicates that it is a block and cannot be passed
through.
2012-12-09 15:13:25 -06:00
Wesley Wolfe
2170673680 Make RECORD_12 a record. Fixes BUKKIT-3023
Record 12 was missed when added to the Material enum.
2012-11-24 02:26:07 -06:00
Darth Android
91ad18a1b4 Cache material data constructors. Fixes BUKKIT-2980
Reobtaining a constructor is not a trivial operation, this change makes the Material enum store the respective constructors for each MaterialData.

Additionally 'fixed' the material tests to use proper generics.
2012-11-24 02:25:20 -06:00
Travis Watkins
39b3aa8e0d Update Bukkit for Minecraft 1.4.4 changes. 2012-11-13 16:13:38 -06:00
Travis Watkins
a446bb7e8f Update Bukkit for Minecraft 1.4(.2) changes. 2012-10-27 22:15:59 -04: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
feildmaster
0b304a288e Update Bukkit for 1.3.1 changes 2012-08-02 04:54:21 -05:00
Wesley Wolfe
6240b9a37c Fix Wood(plank) and add Sandstone MaterialData; addresses BUKKIT-1384 2012-03-31 08:35:59 -05:00
Nathan Adams
d6625f693c Updated Bukkit API for 1.2 2012-03-01 14:25:51 +00:00
Celtic Minstrel
24f43ae5a6 [Bleeding] MaterialData fixes. Addresses BUKKIT-842 2012-03-01 01:31:00 -05:00
Celtic Minstrel
0db822f609 Implementation of richer playEffect methods. Addresses BUKKIT-857 2012-02-29 15:02:59 -05:00
Erik Broes
839d00f9d6 Add some testing 2012-01-29 11:17:44 +01:00
Erik Broes
88c17a7f86 Generic cleaning 2012-01-15 14:37:43 +01:00
Nathan Adams
5ba2e0e158 Changed Material to use an array for lookups, instead of a hashmap. Thanks to zml2008 for the PR 2012-01-15 09:18:20 +00:00
Nathan Adams
1cba399b72 Added new 1.1 items, enchantments. Added WorldType, and a method to set/get the type of a world at creation. 2012-01-12 22:17:18 +00:00
Erik Broes
5743c3bccf Fix some updated item durability values 2012-01-05 17:07:25 +01:00
Erik Broes
e85468010b Fix max stacksize on Potions. 2012-01-05 17:00:57 +01:00
Erik Broes
8e51e711ad Fix max stacksize on EnderPearls. Fixes BUKKIT-418 2012-01-04 09:43:17 +01:00
Nathan Adams
901832e041 Added Material.isEdible. Thanks simplyianm 2011-12-06 09:44:16 +00:00
Andrew Ardill
1b5dc772b3 BREAKING CHANGE: BUKKIT-44 Fix Material Enum typo. Thanks Steeveeo! 2011-11-28 15:52:58 +11:00
Andrew Ardill
6942fb9a8e BUKKIT-61 Add durability to BOW material type. Thanks snowleo! 2011-11-28 10:01:46 +11:00
Nathan Adams
f1b0b8ebf3 BREAKING CHANGE: Renamed Material.WHITESTONE to ENDER_STONE. Added DRAGON_EGG. 2011-11-21 22:38:51 +00:00
Nathan Adams
bcd777459f Fixed typo for NETHER_WARTS 2011-11-19 20:23:28 -08:00
Nathan Adams
72c81ad08a Added various new 1.9 entities, blocks and items 2011-11-19 20:23:27 -08: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
2bed49c0fe Fixed Material.getData returning for "dull" materials with no fancy dataclass 2011-09-25 03:05:07 +01:00
sunkid
e7d0831d41 added support for SmoothBrick and changed steps to a TexturedMaterial 2011-09-25 02:47:47 +01:00
EvilSeph
56f9c092be Fixed max stack sizes for some items, as per new vanilla spec. 2011-09-17 17:01:57 -04:00
Dinnerbone
405001e6a2 Added new Materials (need to add individual api later) 2011-09-15 02:54:19 +01:00
EvilSeph
ffa4980146 Fix missing/incorrect stack sizes and max damages. Thanks celticminstrel and sunkid! 2011-07-14 11:21:00 -04:00
Dinnerbone
542376d7b3 Update to 1.7 2011-06-30 15:18:11 +01:00
EvilSeph
7dab3f1f0a Fixed some item durability values. Thanks jascotty2! 2011-06-07 02:23:01 -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
Dinnerbone
8bdbe6303b Added WEB, POWERED_RAIL and DETECTOR_RAIL to block list 2011-04-21 15:41:40 +01:00
sunkid
3d0781c8bf Ton of Material extensions handling the meta-data of blocks. 2011-04-03 11:28:19 +02:00