Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private int method42(int z, int y, int x) {
- int posX = x >> 7;
- int posY = y >> 7;
- if(posX < 0 || posY < 0 || posX > 103 || posY > 103) {
- return 0;
- }
- int posZ = z;
- if(posZ < 3 && (byteGroundArray[1][posX][posY] & 2) == 2) {
- posZ++;
- }
- int x2 = x & 0x7f;
- int y2 = y & 0x7f;
- int i2 = intGroundArray[posZ][posX][posY] * (128 - x2) + intGroundArray[posZ][posX + 1][posY] * x2 >> 7;
- int j2 = intGroundArray[posZ][posX][posY + 1] * (128 - x2) + intGroundArray[posZ][posX + 1][posY + 1] * x2 >> 7;
- return i2 * (128 - y2) + j2 * y2 >> 7;
- }
Add Comment
Please, Sign In to add comment