Package org.bukkit.entity
Interface FallingBlock
- All Superinterfaces:
CommandSender,Entity,Metadatable,Nameable,Permissible,PersistentDataHolder,ServerOperator
public interface FallingBlock extends Entity
Represents a falling block
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description booleancanHurtEntities()Get the HurtEntities state of this block.BlockDatagetBlockData()Get the data for the falling blockbooleangetDropItem()Get if the falling block will break into an item if it cannot be placedMaterialgetMaterial()Deprecated.usegetBlockData()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.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleportMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Method Details
-
getMaterial
Deprecated.usegetBlockData()Get the Material of the falling block- Returns:
- Material of the block
-
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
-
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.
-