diff --git a/build.gradle.kts b/build.gradle.kts index e8c6f12..ce62829 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -41,7 +41,7 @@ java { } group = "com.github.angeschossen" -version = "1.0.10" +version = "1.0.11" description = "PluginFrameworkAPI" java.sourceCompatibility = JavaVersion.VERSION_1_8 diff --git a/src/main/java/com/github/angeschossen/pluginframework/api/blockutil/BlockPosition.java b/src/main/java/com/github/angeschossen/pluginframework/api/blockutil/BlockPosition.java index c41640d..0386c35 100644 --- a/src/main/java/com/github/angeschossen/pluginframework/api/blockutil/BlockPosition.java +++ b/src/main/java/com/github/angeschossen/pluginframework/api/blockutil/BlockPosition.java @@ -11,6 +11,11 @@ static com.github.angeschossen.pluginframework.api.blockutil.impl.BlockPosition return new com.github.angeschossen.pluginframework.api.blockutil.impl.BlockPosition(world, x, y, z); } + @NotNull + static com.github.angeschossen.pluginframework.api.blockutil.impl.BlockPosition of(Location location) { + return new com.github.angeschossen.pluginframework.api.blockutil.impl.BlockPosition(location.getWorld(), location.getBlockX(), location.getBlockY(), location.getBlockZ()); + } + int getChunkX(); int getChunkZ();