From a2cbf2b29e0c2e1e576649b7eda523599c308257 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 2 Jan 2011 18:00:57 -0800 Subject: [PATCH] Added world.spawnTree(), world.spawnBigTree(). By: sk89q --- paper-api/src/main/java/org/bukkit/World.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index f65856b5a2..4f0fcf7b25 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -27,4 +27,20 @@ public interface World { */ public ArrowEntity spawnArrow(Location loc, Vector velocity, float speed, float spread); + + /** + * Spawns a tree at a location. + * + * @param loc + * @return whether the tree was created + */ + public boolean generateTree(Location loc); + + /** + * Spawns a big tree at a location. + * + * @param loc + * @return whether the tree was created + */ + public boolean generateBigTree(Location loc); }