Add WorldPoint::getRegionID

This commit is contained in:
Max Weber
2018-04-21 08:54:58 -06:00
committed by Adam
parent f0b1f0e8b0
commit 16aca14f7f
3 changed files with 7 additions and 6 deletions

View File

@@ -165,4 +165,9 @@ public class WorldPoint
{
return new Point(x, y);
}
public int getRegionID()
{
return ((x >> 6) << 8) | (y >> 6);
}
}