Skip to content

BlockColorIndex.BlockColorEntry

Package: com.hypixel.hytale.builtin.buildertools

private record BlockColorEntry(int blockId, String key, int r, int g, int b, double labL, double labA, double labB)

Private inner record of BlockColorIndex that stores color data for a single solid cube block type. Each entry holds both the original RGB values and the pre-computed CIE Lab color space coordinates used for perceptual color distance calculations.

ComponentTypeDescription
blockIdintNumeric block ID from the block type asset map index.
keyStringString key identifying the block type in the asset map.
rintRed channel of the particle color (0-255).
gintGreen channel of the particle color (0-255).
bintBlue channel of the particle color (0-255).
labLdoubleCIE Lab L* (lightness) component.
labAdoubleCIE Lab a* (green-red) component.
labBdoubleCIE Lab b* (blue-yellow) component.

This record has private visibility and is only accessible within BlockColorIndex.

  • BlockColorIndex — enclosing class that creates and queries these entries
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.