Updated Map Rendering (markdown)

Xavier Niochaut 2020-08-12 23:14:03 +02:00
parent c747e69a0d
commit 9c36fd1528

@ -30,7 +30,7 @@ mapData.columns = COLUMN_COUNT;
Pixels are stored in a row-major configuration (ie index is defined by `x+width*y`). Attempting to write pixels outside of the 128x128 area WILL crash and/or disconnect the client, so be careful. Minestom does not check which area you are writing to.
You can then send the packet to player through `PlayerConnection#sendPacket(ServerPacket)`
You can then send the packet to players through `PlayerConnection#sendPacket(ServerPacket)`
# Framebuffers - High level API
While directly writing to the pixel buffer is fast and easy for simple graphics, it is rapidly cumbersome to write each pixel individually.