Class RegionKey
java.lang.Object
de.bsommerfeld.pathetic.engine.util.RegionKey
Utility class to pack 3D grid coordinates (Region Indices or Block Positions) into a single
primitive long.
Layout: [X: 26 bit] [Z: 26 bit] [Y: 12 bit]
Range X/Z: +/- 33,554,431
Range Y: 0 to 4095
-
Method Summary
-
Method Details
-
pack
public static long pack(de.bsommerfeld.pathetic.api.wrapper.PathPosition pos) Packs a PathPosition into a primitive long key. -
pack
public static long pack(int x, int y, int z) Packs raw integer coordinates into a primitive long key.
-