From f255e1de552da583447620334ba2df03daabf61d Mon Sep 17 00:00:00 2001 From: Byteflux Date: Fri, 17 Apr 2015 02:43:00 -0700 Subject: [PATCH] Add FallingBlock source location API diff --git a/src/main/java/org/bukkit/entity/FallingBlock.java b/src/main/java/org/bukkit/entity/FallingBlock.java index bc56fa2..240a278 100644 --- a/src/main/java/org/bukkit/entity/FallingBlock.java +++ b/src/main/java/org/bukkit/entity/FallingBlock.java @@ -59,4 +59,11 @@ public interface FallingBlock extends Entity { * @param hurtEntities whether entities will be damaged by this block. */ void setHurtEntities(boolean hurtEntities); + + /** + * Gets the source block location of the falling block + * + * @return the source block location the falling block was spawned from + */ + org.bukkit.Location getSourceLoc(); // PaperSpigot - Add FallingBlock source location API } -- 2.5.2