diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index 498a0e649a..c5f559c61b 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -10,6 +10,7 @@ import java.util.function.Predicate; import org.bukkit.block.Biome; import org.bukkit.block.Block; import org.bukkit.block.data.BlockData; +import org.bukkit.entity.AbstractArrow; import org.bukkit.entity.Arrow; import org.bukkit.entity.Entity; import org.bukkit.entity.EntityType; @@ -352,7 +353,7 @@ public interface World extends PluginMessageRecipient, Metadatable { * @return Arrow entity spawned as a result of this method */ @NotNull - public Arrow spawnArrow(@NotNull Location location, @NotNull Vector direction, float speed, float spread); + public AbstractArrow spawnArrow(@NotNull Location location, @NotNull Vector direction, float speed, float spread); /** * Creates an arrow entity of the given class at the given {@link Location} @@ -367,7 +368,7 @@ public interface World extends PluginMessageRecipient, Metadatable { * @return Arrow entity spawned as a result of this method */ @NotNull - public T spawnArrow(@NotNull Location location, @NotNull Vector direction, float speed, float spread, @NotNull Class clazz); + public T spawnArrow(@NotNull Location location, @NotNull Vector direction, float speed, float spread, @NotNull Class clazz); /** * Creates a tree at the given {@link Location}