Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
Projectile.java
1 package org.bukkit.entity;
2 
4 
5 /**
6  * Represents a shootable entity.
7  */
8 public interface Projectile extends Entity {
9 
10  /**
11  * This method exists for legacy reasons to provide backwards
12  * compatibility. It will not exist at runtime and should not be used
13  * under any circumstances.
14  */
15  @Deprecated
17 
18  /**
19  * Retrieve the shooter of this projectile.
20  *
21  * @return the {@link ProjectileSource} that shot this projectile
22  */
24 
25  /**
26  * This method exists for legacy reasons to provide backwards
27  * compatibility. It will not exist at runtime and should not be used
28  * under any circumstances.
29  */
30  @Deprecated
31  public void _INVALID_setShooter(LivingEntity shooter);
32 
33  /**
34  * Set the shooter of this projectile.
35  *
36  * @param source the {@link ProjectileSource} that shot this projectile
37  */
38  public void setShooter(ProjectileSource source);
39 
40  /**
41  * Determine if this projectile should bounce or not when it hits.
42  * <p>
43  * If a small fireball does not bounce it will set the target on fire.
44  *
45  * @return true if it should bounce.
46  */
47  public boolean doesBounce();
48 
49  /**
50  * Set whether or not this projectile should bounce or not when it hits
51  * something.
52  *
53  * @param doesBounce whether or not it should bounce.
54  */
55  public void setBounce(boolean doesBounce);
56 }
LivingEntity _INVALID_getShooter()
void setShooter(ProjectileSource source)
ProjectileSource getShooter()
void _INVALID_setShooter(LivingEntity shooter)
void setBounce(boolean doesBounce)