blob: a439eaf56e6a7c3763ab25989b592d916feb3f76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
package org.bukkit.entity;
import org.bukkit.Location;
/**
* Represents a Primed TNT.
*/
public interface TNTPrimed extends Explosive {
/**
* Set the number of ticks until the TNT blows up after being primed.
*
* @param fuseTicks The fuse ticks
*/
public void setFuseTicks(int fuseTicks);
/**
* Retrieve the number of ticks until the explosion of this TNTPrimed
* entity
*
* @return the number of ticks until this TNTPrimed explodes
*/
public int getFuseTicks();
/**
* Gets the source of this primed TNT. The source is the entity
* responsible for the creation of this primed TNT. (I.E. player ignites
* TNT with flint and steel.) Take note that this can be null if there is
* no suitable source. (created by the {@link
* org.bukkit.World#spawn(Location, Class)} method, for example.)
* <p>
* The source will become null if the chunk this primed TNT is in is
* unloaded then reloaded. The source entity may be invalid if for example
* it has since died or been unloaded. Callers should check
* {@link Entity#isValid()}.
*
* @return the source of this primed TNT
*/
public Entity getSource();
}
|