@return A new location where X/Y/Z are on the Block location (integer value of X/Y/Z)
()
| 710 | * @return A new location where X/Y/Z are on the Block location (integer value of X/Y/Z) |
| 711 | */ |
| 712 | @NotNull |
| 713 | public Location toBlockLocation() { |
| 714 | Location blockLoc = clone(); |
| 715 | blockLoc.setX(getBlockX()); |
| 716 | blockLoc.setY(getBlockY()); |
| 717 | blockLoc.setZ(getBlockZ()); |
| 718 | return blockLoc; |
| 719 | } |
| 720 | |
| 721 | /** |
| 722 | * @return The block key for this location's block location. |