Class WildernessDebugTint

java.lang.Object
com.hypixel.hytale.builtin.adventure.wilderness.debug.WildernessDebugTint

public final class WildernessDebugTint extends Object
Blends a debug colour over a world map tile.

A tile stores its colours in a palette and its pixels as indices into that palette. One chunk gets one state, so the tint only has to rewrite the palette. The tinted copy shares the packed pixel indices of the source tile.

  • Method Details

    • tint

      @Nonnull public static MapImage tint(@Nonnull MapImage image, boolean wilderness)
      Builds a tinted copy of a tile.
      Parameters:
      image - the tile to tint. Must not be null.
      wilderness - true to use the wilderness colour, false to use the home colour.
      Returns:
      the tinted tile, or the source tile if it holds no palette. Never null.