Commits
Jakub Zacek authored and md_5 committed 4abf9e96df5
32 32 | * <p> |
33 33 | * The source will become null if the chunk this primed TNT is in is |
34 34 | * unloaded then reloaded. The source entity may be invalid if for example |
35 35 | * it has since died or been unloaded. Callers should check |
36 36 | * {@link Entity#isValid()}. |
37 37 | * |
38 38 | * @return the source of this primed TNT |
39 39 | */ |
40 40 | |
41 41 | public Entity getSource(); |
42 + | |
43 + | /** |
44 + | * Sets the source of this primed TNT. |
45 + | * |
46 + | * The source is the entity responsible for the creation of this primed TNT. |
47 + | * <p> |
48 + | * Must be instance of {@link org.bukkit.entity.LivingEntity} otherwise will |
49 + | * be set to null. The parameter is typed {@link |
50 + | * org.bukkit.entity.Entity} to be consistent with {@link |
51 + | * org.bukkit.entity.TNTPrimed#getSource()} method. |
52 + | * |
53 + | * @param source the source of this primed TNT |
54 + | */ |
55 + | public void setSource( Entity source); |
42 56 | } |