replace ChunkPos with LongHashMap#get(X|Z) in WorldClient
This commit is contained in:
parent
e6d16405c5
commit
3a5a29cf9e
2 changed files with 21 additions and 12 deletions
|
@ -13,6 +13,14 @@ public class LongHashMap<V>
|
|||
return (long)x & 4294967295L | ((long)z & 4294967295L) << 32;
|
||||
}
|
||||
|
||||
public static int getX(long v) {
|
||||
return (int)(v & 4294967295L);
|
||||
}
|
||||
|
||||
public static int getZ(long v) {
|
||||
return (int)(v >> 32);
|
||||
}
|
||||
|
||||
public LongHashMap()
|
||||
{
|
||||
this.mask = this.hashArray.length - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue