Newer
Older
ultramine_bukkit / src / main / java / org / bukkit / entity / FallingBlock.java
@vlad20012 vlad20012 on 24 Feb 2017 918 bytes initial
package org.bukkit.entity;

import org.bukkit.Material;

/**
 * Represents a falling block
 */
public interface FallingBlock extends Entity
{

	/**
	 * Get the Material of the falling block
	 *
	 * @return Material of the block
	 */
	Material getMaterial();

	/**
	 * Get the ID of the falling block
	 *
	 * @return ID type of the block
	 * @deprecated Magic value
	 */
	@Deprecated
	int getBlockId();

	/**
	 * Get the data for the falling block
	 *
	 * @return data of the block
	 * @deprecated Magic value
	 */
	@Deprecated
	byte getBlockData();

	/**
	 * Get if the falling block will break into an item if it cannot be placed
	 *
	 * @return true if the block will break into an item when obstructed
	 */
	boolean getDropItem();

	/**
	 * Set if the falling block will break into an item if it cannot be placed
	 *
	 * @param drop true to break into an item when obstructed
	 */
	void setDropItem(boolean drop);
}