From a7fcd2be488fd71b2b7681b17797861de2814789 Mon Sep 17 00:00:00 2001
From: CraftBukkit/Spigot <noreply+git-craftbukkit@papermc.io>
Date: Fri, 21 Jan 2011 19:40:31 +0800
Subject: [PATCH] CraftBlock instance getLocation() method.

By: Adam Tanner <adam@adamtanner.org>
---
 .../java/org/bukkit/craftbukkit/block/CraftBlock.java  | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
index 867a8812da..1ee3225768 100644
--- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
+++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
@@ -4,6 +4,7 @@ package org.bukkit.craftbukkit.block;
 import org.bukkit.block.BlockFace;
 import org.bukkit.block.Biome;
 import org.bukkit.block.Block;
+import org.bukkit.Location;
 import net.minecraft.server.MobSpawnerBase;
 import org.bukkit.*;
 import org.bukkit.block.BlockState;
@@ -54,6 +55,15 @@ public class CraftBlock implements Block {
         return world;
     }
 
+    /**
+     * Gets the Location of the block
+     *
+     * @return Location of the block
+     */
+    public Location getLocation() {
+      return new Location(world, x, y, z);
+    }
+
     /**
      * Gets the x-coordinate of this block
      *