Package dev.despical.pixelpainter.image


package dev.despical.pixelpainter.image
Bounded source-image I/O, palette matching and prepared block plans.

ImageStore validates flat filenames, source dimensions and trusted HTTPS download destinations. Palette loading resolves Bukkit materials on the server thread; workers then resize images and match cached colors without accessing worlds. PaintPlan copies its row-major pixel array and material totals for transfer to the world service. Null pixels preserve terrain instead of placing air.

  • Class
    Description
    Resolves configured material colors and performs perceptual nearest-color matching.
    Associates a material and canonical block data with its representative color.
    Resizes decoded images and selects block materials independently of Bukkit worlds.
    Owns local PNG, JPEG and WebP files and bounded downloads from trusted HTTPS hosts.
    Stores prepared block data and material totals without a live world reference.