Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 36 lines 963 B view raw
1package org.bukkit.entity; 2 3/** 4 * Represents a shootable entity 5 */ 6public interface Projectile extends Entity { 7 8 /** 9 * Retrieve the shooter of this projectile. The returned value can be null 10 * for projectiles shot from a {@link Dispenser} for example. 11 * 12 * @return the {@link LivingEntity} that shot this projectile 13 */ 14 public LivingEntity getShooter(); 15 16 /** 17 * Set the shooter of this projectile 18 * 19 * @param shooter the {@link LivingEntity} that shot this projectile 20 */ 21 public void setShooter(LivingEntity shooter); 22 23 /** 24 * Determine if this projectile should bounce or not when it hits. 25 * 26 * @return true if it should bounce. 27 */ 28 public boolean doesBounce(); 29 30 /** 31 * Set whether or not this projectile should bounce or not when it hits something. 32 * 33 * @param doesBounce whether or not it should bounce. 34 */ 35 public void setBounce(boolean doesBounce); 36}