Skip to content

Instantly share code, notes, and snippets.

@t81lal
Last active August 29, 2015 14:14
Show Gist options
  • Save t81lal/e6e0399c6504bf7147a5 to your computer and use it in GitHub Desktop.
Save t81lal/e6e0399c6504bf7147a5 to your computer and use it in GitHub Desktop.
Minecraft Block Retrieving
ExtendedBlockStorage blockStorage = storageArrays[pos.getY() >> 4];
if (blockStorage != null) {
int x = pos.getX() & 15;
int y = pos.getY() & 15;
int z = pos.getZ() & 15;
return blockStorage.get(x, y, z);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment