Java Code Examples for org.bukkit.Material#DEAD_BUSH
The following examples show how to use
org.bukkit.Material#DEAD_BUSH .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FlowerPot.java From Kettle with GNU General Public License v3.0 | 5 votes |
/** * Get the material in the flower pot * * @return material MaterialData for the block currently in the flower pot * or null if empty */ public MaterialData getContents() { switch (getData()) { case 1: return new MaterialData(Material.RED_ROSE); case 2: return new MaterialData(Material.YELLOW_FLOWER); case 3: return new Tree(TreeSpecies.GENERIC); case 4: return new Tree(TreeSpecies.REDWOOD); case 5: return new Tree(TreeSpecies.BIRCH); case 6: return new Tree(TreeSpecies.JUNGLE); case 7: return new MaterialData(Material.RED_MUSHROOM); case 8: return new MaterialData(Material.BROWN_MUSHROOM); case 9: return new MaterialData(Material.CACTUS); case 10: return new MaterialData(Material.DEAD_BUSH); case 11: return new LongGrass(GrassSpecies.FERN_LIKE); default: return null; } }