org.bukkit.entity
Interface FallingBlock

All Superinterfaces:
Entity, Metadatable
All Known Subinterfaces:
FallingSand

public interface FallingBlock
extends Entity

Represents a falling block


Method Summary
 byte getBlockData()
          Get the data for the falling block
 int getBlockId()
          Get the ID of the falling block
 boolean getDropItem()
          Get if the falling block will break into an item if it cannot be placed
 Material getMaterial()
          Get the Material of the falling block
 void setDropItem(boolean drop)
          Set if the falling block will break into an item if it cannot be placed
 
Methods inherited from interface org.bukkit.entity.Entity
eject, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
 
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
 

Method Detail

getMaterial

Material getMaterial()
Get the Material of the falling block

Returns:
Material of the block

getBlockId

int getBlockId()
Get the ID of the falling block

Returns:
ID type of the block

getBlockData

byte getBlockData()
Get the data for the falling block

Returns:
data of the block

getDropItem

boolean getDropItem()
Get if the falling block will break into an item if it cannot be placed

Returns:
true if the block will break into an item when obstructed

setDropItem

void setDropItem(boolean drop)
Set if the falling block will break into an item if it cannot be placed

Parameters:
drop - true to break into an item when obstructed


Copyright © 2013. All Rights Reserved.