接口 ExplosiveMinecart

所有超级接口:
CommandSender, Entity, Explosive, Metadatable, Minecart, Nameable, Permissible, PersistentDataHolder, ServerOperator, Vehicle

public interface ExplosiveMinecart extends Minecart, Explosive
代表TNT矿车,可以被引爆.
  • 方法详细资料

    • 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