接口 TNTPrimed
- 所有超级接口:
CommandSender
,Entity
,Explosive
,Metadatable
,Nameable
,Permissible
,ServerOperator
Represents a Primed TNT.
-
方法概要
修饰符和类型方法说明int
Retrieve the number of ticks until the explosion of this TNTPrimed entityGets the source of this primed TNT.void
setFuseTicks
(int fuseTicks) Set the number of ticks until the TNT blows up after being primed.从接口继承的方法 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.entity.Explosive
getYield, isIncendiary, setIsIncendiary, setYield
从接口继承的方法 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
-
方法详细资料
-
setFuseTicks
void setFuseTicks(int fuseTicks) Set the number of ticks until the TNT blows up after being primed.- 参数:
fuseTicks
- The fuse ticks
-
getFuseTicks
int getFuseTicks()Retrieve the number of ticks until the explosion of this TNTPrimed entity- 返回:
- the number of ticks until this TNTPrimed explodes
-
getSource
Entity getSource()Gets the source of this primed TNT. The source is the entity responsible for the creation of this primed TNT. (I.E. player ignites TNT with flint and steel.) Take note that this can be null if there is no suitable source. (created by theWorld.spawn(Location, Class)
method, for example.)The source will become null if the chunk this primed TNT is in is unloaded then reloaded. The source entity may be invalid if for example it has since died or been unloaded. Callers should check
Entity.isValid()
.- 返回:
- the source of this primed TNT
-