From 687e30abd09aa9c9aea2bb58c0bd3f8a332a2f73 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 30 Apr 2019 21:31:14 +1000 Subject: [PATCH] World#spawnArrow should return an AbstractArrow now By: md_5 --- paper-api/src/main/java/org/bukkit/World.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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}