From a9f5460f0cbd875c12936690058109b51cdea34f Mon Sep 17 00:00:00 2001
From: CraftBukkit/Spigot <noreply+git-craftbukkit@papermc.io>
Date: Fri, 18 Feb 2011 16:35:05 +0000
Subject: [PATCH] Implemented a whole buncha Location overrides in CraftWorld

By: Dinnerbone <dinnerbone@dinnerbone.com>
---
 .../java/org/bukkit/craftbukkit/CraftWorld.java  | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index c6c646d3fb..7be7c4586b 100644
--- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -353,6 +353,22 @@ public class CraftWorld implements World {
         return environment;
     }
 
+    public Block getBlockAt(Location location) {
+        return getBlockAt(location.getBlockX(), location.getBlockY(), location.getBlockZ());
+    }
+
+    public int getBlockTypeIdAt(Location location) {
+        return getBlockTypeIdAt(location.getBlockX(), location.getBlockY(), location.getBlockZ());
+    }
+
+    public int getHighestBlockYAt(Location location) {
+        return getHighestBlockYAt(location.getBlockX(), location.getBlockZ());
+    }
+
+    public Chunk getChunkAt(Location location) {
+        return getChunkAt(location.getBlockX() >> 4, location.getBlockZ() >> 4);
+    }
+
     private final class ChunkCoordinate {
         public final int x;
         public final int z;