Interface ExplosiveMinecart

All Superinterfaces:
Audience, CommandSender, Entity, HoverEventSource<HoverEvent.ShowEntity>, Metadatable, Minecart, Nameable, Permissible, PersistentDataHolder, Pointered, ServerOperator, Sound.Emitter, Vehicle

public interface ExplosiveMinecart extends Minecart
Represents a Minecart with TNT inside it that can explode when triggered.
  • Method Details

    • setFuseTicks

      void setFuseTicks(int fuseTicks)
      Set the number of ticks until the Minecart explodes after being primed.
      Parameters:
      fuseTicks - fuse ticks or -1 if the fuse isn't primed
    • getFuseTicks

      int getFuseTicks()
      Retrieve the number of ticks until the explosive Minecart explodes.
      Returns:
      number of ticks or -1 if the fuse isn't primed
    • isIgnited

      boolean isIgnited()
      Checks whether this explosive Minecart is ignited (its fuse is primed).
      Returns:
      whether the Minecart is ignited
    • ignite

      void ignite()
      Ignites this explosive Minecart, beginning its fuse.
    • explode

      void explode()
      Immediately explodes the Minecart. Power will depend on the Minecart's horizontal speed.
    • explode

      void explode(double power)
      Immediately explodes the Minecart with the specified power.
      Parameters:
      power - explosion power