diff --git a/paper-api/src/main/java/org/bukkit/Location.java b/paper-api/src/main/java/org/bukkit/Location.java index 7316ea33a8..85f2c71401 100644 --- a/paper-api/src/main/java/org/bukkit/Location.java +++ b/paper-api/src/main/java/org/bukkit/Location.java @@ -1,6 +1,7 @@ package org.bukkit; +import org.bukkit.block.Block; import org.bukkit.util.Vector; /** @@ -45,6 +46,15 @@ public class Location implements Cloneable { return world; } + /** + * Gets the block at the represented location + * + * @return Block at the represented location + */ + public Block getBlock() { + return world.getBlockAt(getBlockX(), getBlockY(), getBlockZ()); + } + /** * Sets the x-coordinate of this location *