Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
TNTPrimed.java
1 package org.bukkit.entity;
2 
3 /**
4  * Represents a Primed TNT.
5  */
6 public interface TNTPrimed extends Explosive {
7 
8  /**
9  * Set the number of ticks until the TNT blows up after being primed.
10  *
11  * @param fuseTicks The fuse ticks
12  */
13  public void setFuseTicks(int fuseTicks);
14 
15  /**
16  * Retrieve the number of ticks until the explosion of this TNTPrimed
17  * entity
18  *
19  * @return the number of ticks until this TNTPrimed explodes
20  */
21  public int getFuseTicks();
22 
23  /**
24  * Gets the source of this primed TNT. The source is the entity
25  * responsible for the creation of this primed TNT. (I.E. player ignites
26  * TNT with flint and steel.) Take note that this can be null if there is
27  * no suitable source. (created by the {@link
28  * org.bukkit.World#spawn(Location, Class)} method, for example.)
29  * <p>
30  * The source will become null if the chunk this primed TNT is in is
31  * unloaded then reloaded. If the source Entity becomes invalidated for
32  * any reason, such being removed from the world, the returned value will
33  * be null.
34  *
35  * @return the source of this primed TNT
36  */
37  public Entity getSource();
38 }
void setFuseTicks(int fuseTicks)