程序包 org.bukkit.map

# 接口 MapPalette.MapColorCache

封闭类:
  MapPalette

public static interface MapPalette.MapColorCache
Holds cached information for matching map colors of a given RBG color.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `boolean`
  `isCached()`
  Returns true if the MapColorCache has values cached, if not it will return false.
  `byte`
  `matchColor(@NotNull Color color)`
  已过时。
  Magic value

- ## 方法详细资料

  - ### isCached

    boolean isCached()
    Returns true if the MapColorCache has values cached, if not it will return false. A case where it might return false is when the cache is not build jet.
    返回:
      true if this MapColorCache has values cached otherwise false

  - ### matchColor

    @Deprecated byte matchColor(@NotNull @NotNull Color color)
    已过时。
    Magic value
    Get the cached index of the closest matching color in the palette to the given color.
    参数:
      `color` - The Color to match.
    返回:
      The index in the palette.
    抛出:
      `IllegalStateException` - if `isCached()` returns false