Files
Paper/paper-api/src/main/java/org/bukkit/entity/Projectile.java
Aikar 2825ece820 Fix Spigot annotation mistakes
while some of these may of been true, they are extreme cases and cause
a ton of noise to plugin developers.

Use ApiStatus.Internal instead of Deprecated for actual internal API
that continues to have use (internally).

These do not help plugin developers if they bring moise noise than value.
2019-03-24 18:39:01 -04:00

45 lines
1.2 KiB
Java

package org.bukkit.entity;
import org.bukkit.projectiles.ProjectileSource;
import org.jetbrains.annotations.Nullable;
/**
* Represents a shootable entity.
*/
public interface Projectile extends Entity {
/**
* Retrieve the shooter of this projectile.
*
* @return the {@link ProjectileSource} that shot this projectile
*/
@Nullable
public ProjectileSource getShooter();
/**
* Set the shooter of this projectile.
*
* @param source the {@link ProjectileSource} that shot this projectile
*/
public void setShooter(@Nullable ProjectileSource source);
/**
* Determine if this projectile should bounce or not when it hits.
*
* @return true if it should bounce.
* @deprecated does not do anything
*/
@Deprecated(since = "1.20.2", forRemoval = true)
public boolean doesBounce();
/**
* Set whether or not this projectile should bounce or not when it hits
* something.
*
* @param doesBounce whether or not it should bounce.
* @deprecated does not do anything
*/
@Deprecated(since = "1.20.2", forRemoval = true)
public void setBounce(boolean doesBounce);
}