diff --git a/paper-api/src/main/java/org/bukkit/ArrowEntity.java b/paper-api/src/main/java/org/bukkit/ArrowEntity.java new file mode 100644 index 0000000000..d1b24c2993 --- /dev/null +++ b/paper-api/src/main/java/org/bukkit/ArrowEntity.java @@ -0,0 +1,9 @@ +package org.bukkit; + +/** + * Represents an arrow. + * + * @author sk89q + */ +public interface ArrowEntity extends Entity { +} diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index 1ff0d7b3be..f65856b5a2 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -15,4 +15,16 @@ public interface World { public Chunk getChunkAt(Block block); public boolean isChunkLoaded(); + + /** + * Spawns an arrow. + * + * @param loc + * @param velocity velocity vector + * @param speed a reasonable speed is 0.6 + * @param spread a reasonable spread is 12 + * @return the arrow entity + */ + public ArrowEntity spawnArrow(Location loc, Vector velocity, + float speed, float spread); }