Returns the region ID based on the region coordinates. 0 will be returned if the specified region coordinates are out of bounds. @param regionX The region X coordinate @param regionZ The region Z coordinate @return The region ID
(int regionX, int regionZ)
| 281 | * @return The region ID |
| 282 | */ |
| 283 | private long getRegionID(int regionX, int regionZ) { |
| 284 | if (!isRegionInWorld(regionX, regionZ)) { |
| 285 | return 0; |
| 286 | } |
| 287 | |
| 288 | return (long) regionX & 0xFFFFFFFFL | ((long) regionZ & 0xFFFFFFFFL) << 32; |
| 289 | } |
| 290 | |
| 291 | /** |
| 292 | * Returns whether or not the specified region coordinates is within the world bounds. |
no test coverage detected