I’m working with chunk locations and the chunk grid, but I’m having some trouble with a few methods. Basically what I want to do is take a world location and:
Find the chunk that it is in
Find the chunk location in that chunk that corresponds to it
For number 1, there’s already a getChunk(Vector3d) in World.
For number 2, you can use location.sub(chunk.getBlockMin()). However, note that methods in Chunk use the absolute location - the location as seen by the world.