接口 Explosive
- 所有超级接口:
CommandSender
,Entity
,Metadatable
,Nameable
,Permissible
,ServerOperator
- 所有已知子接口:
DragonFireball
,Fireball
,LargeFireball
,SmallFireball
,TNTPrimed
,WitherSkull
A representation of an explosive entity
-
方法概要
修饰符和类型方法说明float
getYield()
Return the radius or yield of this explosive's explosionboolean
Return whether or not this explosive creates a fire when explodingvoid
setIsIncendiary
(boolean isIncendiary) Set whether or not this explosive's explosion causes firevoid
setYield
(float yield) Set the radius affected by this explosive's explosion从接口继承的方法 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
-
方法详细资料
-
setYield
void setYield(float yield) Set the radius affected by this explosive's explosion- 参数:
yield
- The explosive yield
-
getYield
float getYield()Return the radius or yield of this explosive's explosion- 返回:
- the radius of blocks affected
-
setIsIncendiary
void setIsIncendiary(boolean isIncendiary) Set whether or not this explosive's explosion causes fire- 参数:
isIncendiary
- Whether it should cause fire
-
isIncendiary
boolean isIncendiary()Return whether or not this explosive creates a fire when exploding- 返回:
- true if the explosive creates fire, false otherwise
-