Class MinecraftMapConverter

java.lang.Object
ke.ric.renderer.api.MinecraftMapConverter

public final class MinecraftMapConverter extends Object
Converts copied frame RGB colors to Minecraft palette bytes; run nontrivial conversion on a private worker executor.
  • Method Details

    • quantize

      public static 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.
    • tiles

      public 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.