Package org.bukkit.entity
Interface FallingBlock
- All Superinterfaces:
CommandSender
,Entity
,Metadatable
,Permissible
,ServerOperator
- All Known Subinterfaces:
FallingSand
public interface FallingBlock extends Entity
Represents a falling block
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description boolean
canHurtEntities()
Get the HurtEntities state of this block.byte
getBlockData()
Deprecated.Magic valueint
getBlockId()
Deprecated.Magic valueboolean
getDropItem()
Get if the falling block will break into an item if it cannot be placedMaterial
getMaterial()
Get the Material of the falling blockvoid
setDropItem(boolean drop)
Set if the falling block will break into an item if it cannot be placedvoid
setHurtEntities(boolean hurtEntities)
Set the HurtEntities state of this block.Methods inherited from interface org.bukkit.entity.Entity
eject, getCustomName, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isCustomNameVisible, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
-
Method Details
-
getMaterial
Material getMaterial()Get the Material of the falling block- Returns:
- Material of the block
-
getBlockId
@Deprecated int getBlockId()Deprecated.Magic valueGet the ID of the falling block- Returns:
- ID type of the block
-
getBlockData
@Deprecated byte getBlockData()Deprecated.Magic valueGet 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
-
canHurtEntities
boolean canHurtEntities()Get the HurtEntities state of this block.- Returns:
- whether entities will be damaged by this block.
-
setHurtEntities
void setHurtEntities(boolean hurtEntities)Set the HurtEntities state of this block.- Parameters:
hurtEntities
- whether entities will be damaged by this block.
-