(x, y, z int)
| 46 | } |
| 47 | |
| 48 | func (s *Section) offset(x, y, z int) (long, offset int) { |
| 49 | blockNumber := ((((y * 16) + z) * 16) + x) * s.blockBitsPerEntry |
| 50 | startLong := blockNumber >> 6 |
| 51 | stateOffset := blockNumber & 63 |
| 52 | |
| 53 | return startLong, stateOffset |
| 54 | } |
| 55 | |
| 56 | // X, Y, Z should be relative to the chunk section (AKA x&0x0f, y&0x0f, z&0x0f) |
| 57 | func (s *Section) Block(x, y, z byte) AnvilBlock { |
no outgoing calls
no test coverage detected