mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-25 12:05:13 +01:00
Updated Map Rendering (markdown)
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.
|
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
|
# 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.
|
While directly writing to the pixel buffer is fast and easy for simple graphics, it is rapidly cumbersome to write each pixel individually.
|
||||||
|
Loading…
Reference in New Issue
Block a user