public interface FallingBlock extends Entity
原文: Represents a falling block
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canHurtEntities()
获取此方块能否砸伤实体.
|
BlockData |
getBlockData()
Get the data for the falling block
|
boolean |
getDropItem()
获取下落方块被阻挡时是否会变为掉落物.
|
Material |
getMaterial()
已过时。
请使用
getBlockData() |
void |
setDropItem(boolean drop)
设置下落方块被阻挡时是否会变为掉落物.
|
void |
setHurtEntities(boolean hurtEntities)
设置此方块能否砸伤实体.
|
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessageaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOpgetCustomName, setCustomNameMaterial getMaterial()
getBlockData()原文: Get the Material of the falling block
BlockData getBlockData()
boolean getDropItem()
原文: Get if the falling block will break into an item if it cannot be placed
void setDropItem(boolean drop)
原文: Set if the falling block will break into an item if it cannot be placed
drop - 当被阻挡时变为掉落物时返回 true.boolean canHurtEntities()
原文: Get the HurtEntities state of this block.
void setHurtEntities(boolean hurtEntities)
原文: Set the HurtEntities state of this block.
hurtEntities - 此方块能否砸伤实体.