Package ke.ric.renderer.api
Class MinecraftMapConverter
java.lang.Object
ke.ric.renderer.api.MinecraftMapConverter
Converts copied frame RGB colors to Minecraft palette bytes; run nontrivial conversion on a private worker executor.
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]quantize(RenderResult frame, MapDither mode) Returns one row-major palette byte per pixel; RGB is quantized with the selected dither and source alpha is not composited.static byte[][]tiles(RenderResult frame, MapDither mode) Returns newly allocated 128x128 palette tiles in row-major tile order; both frame dimensions must be multiples of 128.
-
Method Details
-
quantize
Returns one row-major palette byte per pixel; RGB is quantized with the selected dither and source alpha is not composited. -
tiles
Returns newly allocated 128x128 palette tiles in row-major tile order; both frame dimensions must be multiples of 128.
-