I am trying to convert a map that I would create while on a server to an external image to use later. After careful consideration, I believe my best bet is to convert the byte array "colors" to a 2D array of RGB values that I can then create a BufferedImage with using .setRGB() and go from there. My problem is that I don't know how I would access that array. Since the map isn't on a local world file, I can't just extract it from the .dat file. The map would be placed into my inventory, and already filled.
I am trying to convert a map that I would create while on a server to an external image to use later. After careful consideration, I believe my best bet is to convert the byte array "colors" to a 2D array of RGB values that I can then create a BufferedImage with using .setRGB() and go from there. My problem is that I don't know how I would access that array. Since the map isn't on a local world file, I can't just extract it from the .dat file. The map would be placed into my inventory, and already filled.
Here is an example of me spamming the console with the colors arrays to the console, when the player is holding a filled map:
e#