Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
FallingBlock.java
1 package org.bukkit.entity;
2 
3 import org.bukkit.Material;
4 
5 /**
6  * Represents a falling block
7  */
8 public interface FallingBlock extends Entity {
9 
10  /**
11  * Get the Material of the falling block
12  *
13  * @return Material of the block
14  */
16 
17  /**
18  * Get the ID of the falling block
19  *
20  * @return ID type of the block
21  * @deprecated Magic value
22  */
23  @Deprecated
24  int getBlockId();
25 
26  /**
27  * Get the data for the falling block
28  *
29  * @return data of the block
30  * @deprecated Magic value
31  */
32  @Deprecated
33  byte getBlockData();
34 
35  /**
36  * Get if the falling block will break into an item if it cannot be placed
37  *
38  * @return true if the block will break into an item when obstructed
39  */
40  boolean getDropItem();
41 
42  /**
43  * Set if the falling block will break into an item if it cannot be placed
44  *
45  * @param drop true to break into an item when obstructed
46  */
47  void setDropItem(boolean drop);
48 }
void setDropItem(boolean drop)