接口 ExplosiveMinecart

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

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

    • setFuseTicks

      void setFuseTicks(int ticks)
      Set the fuse ticks of this minecart. If the fuse ticks are set to a non-zero value, this will ignite the explosive.
      参数:
      ticks - the ticks
    • getFuseTicks

      int getFuseTicks()
      Get the fuse ticks of this minecart. If the fuse ticks reach 0, the minecart will explode.
      返回:
      the fuse ticks, or -1 if this minecart's fuse has not yet been ignited
    • ignite

      void ignite()
      Ignite this minecart's fuse naturally.
    • isIgnited

      boolean isIgnited()
      Check whether or not this minecart's fuse has been ignited.
      返回:
      true if ignited, false otherwise
    • 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 - the power to use. Must be positive and cannot exceed 5.0