Deprecating remaining blockkey methods (#7638)

This commit is contained in:
Jake Potrebic 2022-03-21 11:06:42 -07:00
parent bdb0f73b6b
commit 4d70f4ee6f

View File

@ -38,7 +38,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ /**
+ * @return The block key for this location's block location.
+ * @see Block#getBlockKey(int, int, int)
+ * @deprecated only encodes y block ranges from -512 to 511 and represents an already changed implementation detail
+ */
+ @Deprecated
+ public long toBlockKey() {
+ return Block.getBlockKey(getBlockX(), getBlockY(), getBlockZ());
+ }
@ -62,8 +64,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ * @param key The block key. See {@link Block#getBlockKey()}
+ * @return Block at the key
+ * @see Block#getBlockKey(int, int, int)
+ * @deprecated only encodes y block ranges from -512 to 511 and represents an already changed implementation detail
+ */
+ @NotNull
+ @Deprecated
+ public default Block getBlockAtKey(long key) {
+ int x = Block.getBlockKeyX(key);
+ int y = Block.getBlockKeyY(key);