接口 TNTPrimed
- 所有超级接口:
- CommandSender,- Entity,- Explosive,- Metadatable,- Nameable,- Permissible,- PersistentDataHolder,- ServerOperator
Represents a Primed TNT.
- 
嵌套类概要从接口继承的嵌套类/接口 org.bukkit.entity.EntityEntity.Spigot
- 
方法概要修饰符和类型方法说明intRetrieve the number of ticks until the explosion of this TNTPrimed entityGets the source of this primed TNT.voidsetFuseTicks(int fuseTicks) Set the number of ticks until the TNT blows up after being primed.voidSets the source of this primed TNT.从接口继承的方法 org.bukkit.command.CommandSendergetName, sendMessage, sendMessage, sendMessage, sendMessage从接口继承的方法 org.bukkit.entity.EntityaddPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getAsString, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isInWorld, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleport从接口继承的方法 org.bukkit.entity.ExplosivegetYield, isIncendiary, setIsIncendiary, setYield从接口继承的方法 org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadata从接口继承的方法 org.bukkit.NameablegetCustomName, setCustomName从接口继承的方法 org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment从接口继承的方法 org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainer从接口继承的方法 org.bukkit.permissions.ServerOperatorisOp, setOp
- 
方法详细资料- 
setFuseTicksvoid setFuseTicks(int fuseTicks) Set the number of ticks until the TNT blows up after being primed.- 参数:
- fuseTicks- The fuse ticks
 
- 
getFuseTicksint getFuseTicks()Retrieve the number of ticks until the explosion of this TNTPrimed entity- 返回:
- the number of ticks until this TNTPrimed explodes
 
- 
getSourceGets 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 theRegionAccessor.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
 
- 
setSourceSets the source of this primed TNT. The source is the entity responsible for the creation of this primed TNT.Must be instance of LivingEntityotherwise will be set to null. The parameter is typedEntityto be consistent withgetSource()method.- 参数:
- source- the source of this primed TNT
 
 
-