001 package org.bukkit.entity; 002 003 import org.bukkit.Material; 004 005 /** 006 * Represents a falling block 007 */ 008 public interface FallingBlock extends Entity { 009 010 /** 011 * Get the Material of the falling block 012 * 013 * @return Material of the block 014 */ 015 Material getMaterial(); 016 017 /** 018 * Get the ID of the falling block 019 * 020 * @return ID type of the block 021 * @deprecated Magic value 022 */ 023 @Deprecated 024 int getBlockId(); 025 026 /** 027 * Get the data for the falling block 028 * 029 * @return data of the block 030 * @deprecated Magic value 031 */ 032 @Deprecated 033 byte getBlockData(); 034 035 /** 036 * Get if the falling block will break into an item if it cannot be placed 037 * 038 * @return true if the block will break into an item when obstructed 039 */ 040 boolean getDropItem(); 041 042 /** 043 * Set if the falling block will break into an item if it cannot be placed 044 * 045 * @param drop true to break into an item when obstructed 046 */ 047 void setDropItem(boolean drop); 048 }