Package org.bukkit.entity
Interface FallingBlock
- All Superinterfaces:
- CommandSender,- Entity,- Metadatable,- Nameable,- Permissible,- PersistentDataHolder,- ServerOperator
Represents a falling block
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.entity.EntityEntity.Spigot
- 
Method SummaryModifier and TypeMethodDescriptionbooleanGet the HurtEntities state of this block.Get the data for the falling blockbooleanGet if the falling block will break into an item if it cannot be placedDeprecated.voidsetDropItem(boolean drop) Set if the falling block will break into an item if it cannot be placedvoidsetHurtEntities(boolean hurtEntities) Set the HurtEntities state of this block.Methods inherited from interface org.bukkit.command.CommandSendergetName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface org.bukkit.entity.EntityaddPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isOnGround, isPersistent, isSilent, isValid, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisualFire, spigot, teleport, teleport, teleport, teleportMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.NameablegetCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainerMethods inherited from interface org.bukkit.permissions.ServerOperatorisOp, setOp
- 
Method Details- 
getMaterialDeprecated.usegetBlockData()Get the Material of the falling block- Returns:
- Material of the block
 
- 
getBlockDataGet the data for the falling block- Returns:
- data of the block
 
- 
getDropItemboolean 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
 
- 
setDropItemvoid 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
 
- 
canHurtEntitiesboolean canHurtEntities()Get the HurtEntities state of this block.- Returns:
- whether entities will be damaged by this block.
 
- 
setHurtEntitiesvoid setHurtEntities(boolean hurtEntities) Set the HurtEntities state of this block.- Parameters:
- hurtEntities- whether entities will be damaged by this block.
 
 
- 
getBlockData()