接口 ExplosiveMinecart
- 所有超级接口:
CommandSender,Entity,Explosive,Metadatable,Minecart,Nameable,Permissible,PersistentDataHolder,ServerOperator,Vehicle
代表TNT矿车,可以被引爆.
-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.entity.Entity
Entity.Spigot -
方法概要
修饰符和类型方法说明voidexplode()立即引爆此矿车,爆炸威力由其当前移动速度决定。voidexplode(double power) 以指定威力立即引爆此矿车。float获取基于矿车速度计算的爆炸威力增加系数。int获取此矿车的引信时间(以tick为单位)。voidignite()点燃此矿车的引信。boolean检查此矿车的引信是否已被点燃。voidsetExplosionSpeedFactor(float factor) 设置基于矿车速度计算的爆炸威力增加系数。voidsetFuseTicks(int ticks) 设置此矿车的引信时间(以tick为单位)。从接口继承的方法 org.bukkit.command.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessage从接口继承的方法 org.bukkit.entity.Entity
addPassenger, 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, 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, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleport从接口继承的方法 org.bukkit.entity.Explosive
getYield, isIncendiary, setIsIncendiary, setYield从接口继承的方法 org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata从接口继承的方法 org.bukkit.entity.Minecart
getDamage, getDerailedVelocityMod, getDisplayBlock, getDisplayBlockData, getDisplayBlockOffset, getFlyingVelocityMod, getMaxSpeed, getPoweredRailAccelerationMultiplier, isSlowWhenEmpty, setDamage, setDerailedVelocityMod, setDisplayBlock, setDisplayBlockData, setDisplayBlockOffset, setFlyingVelocityMod, setMaxSpeed, setPoweredRailAccelerationMultiplier, setSlowWhenEmpty从接口继承的方法 org.bukkit.Nameable
getCustomName, setCustomName从接口继承的方法 org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment从接口继承的方法 org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer从接口继承的方法 org.bukkit.permissions.ServerOperator
isOp, setOp从接口继承的方法 org.bukkit.entity.Vehicle
getVelocity, setVelocity
-
方法详细资料
-
setFuseTicks
void setFuseTicks(int ticks) 设置此矿车的引信时间(以tick为单位)。如果将引信时间设置为非零值,将会点燃此爆炸物。
原文:Set the fuse ticks of this minecart.
- 参数:
ticks- 引信时间(以tick为单位)
-
getFuseTicks
int getFuseTicks()获取此矿车的引信时间(以tick为单位)。如果引信时间降为0,矿车将会爆炸。
原文:Get the fuse ticks of this minecart.
- 返回:
- 引信时间(以tick为单位),如果此矿车的引信尚未点燃则返回-1
-
getExplosionSpeedFactor
float getExplosionSpeedFactor()获取基于矿车速度计算的爆炸威力增加系数。原文:Gets the factor by which explosion yield increases based on Minecart speed.
- 返回:
- 增加系数
-
setExplosionSpeedFactor
void setExplosionSpeedFactor(float factor) 设置基于矿车速度计算的爆炸威力增加系数。原文:Sets the factor by which explosion yield increases based on Minecart speed.
- 参数:
factor- 新的系数
-
ignite
void ignite()点燃此矿车的引信。原文:Ignite this minecart's fuse naturally.
-
isIgnited
boolean isIgnited()检查此矿车的引信是否已被点燃。原文:Check whether or not this minecart's fuse has been ignited.
- 返回:
- 如果已点燃则为true,否则为false
-
explode
void explode()立即引爆此矿车,爆炸威力由其当前移动速度决定。原文:Immediately explode this minecart with the power assumed by its current movement.
-
explode
void explode(double power) 以指定威力立即引爆此矿车。原文:Immediately explode this minecart with the given power.
- 参数:
power- 爆炸威力,必须为正数且不能超过5.0
-