接口 FallingBlock
- 所有超级接口:
CommandSender
,Entity
,Metadatable
,Nameable
,Permissible
,ServerOperator
Represents a falling block
-
方法概要
修饰符和类型方法说明boolean
Get the HurtEntities state of this block.byte
已过时。Magic valueint
已过时。Magic valueboolean
Get if the falling block will break into an item if it cannot be placedGet 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.从接口继承的方法 org.bukkit.command.CommandSender
getName, sendMessage, sendMessage
从接口继承的方法 org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, getEntityId, 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, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
从接口继承的方法 org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
从接口继承的方法 org.bukkit.Nameable
getCustomName, setCustomName
从接口继承的方法 org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
从接口继承的方法 org.bukkit.permissions.ServerOperator
isOp, setOp
-
方法详细资料
-
getMaterial
Material getMaterial()Get the Material of the falling block- 返回:
- Material of the block
-
getBlockId
已过时。Magic valueGet the ID of the falling block- 返回:
- ID type of the block
-
getBlockData
已过时。Magic valueGet the data for the falling block- 返回:
- data of the block
-
getDropItem
boolean getDropItem()Get if the falling block will break into an item if it cannot be placed- 返回:
- 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- 参数:
drop
- true to break into an item when obstructed
-
canHurtEntities
boolean canHurtEntities()Get the HurtEntities state of this block.- 返回:
- whether entities will be damaged by this block.
-
setHurtEntities
void setHurtEntities(boolean hurtEntities) Set the HurtEntities state of this block.- 参数:
hurtEntities
- whether entities will be damaged by this block.
-