Add method to get ungenerated chunk from long key (#9254)

Also added a missing deprecation for a location block key method
This commit is contained in:
Jake Potrebic
2023-06-17 11:43:08 -07:00
parent d555760ff6
commit aa6d576fe0
3 changed files with 29 additions and 11 deletions

View File

@@ -83,6 +83,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ * @see Block#getBlockKey(int, int, int)
+ */
+ @NotNull
+ @Deprecated
+ public default Location getLocationAtKey(long key) {
+ int x = Block.getBlockKeyX(key);
+ int y = Block.getBlockKeyY(key);