Package guideme.color

Interface SymbolicColorResolver

All Superinterfaces:
Extension

public interface SymbolicColorResolver extends Extension
This extension point can be used to register custom symbolic colors in your guide.
  • Field Details

  • Method Details

    • resolve

      @Nullable @Nullable ColorValue resolve(net.minecraft.resources.ResourceLocation id)
      Attempt to resolve a custom symbolic color value.
      Parameters:
      id - The id of the color.
      Returns:
      Null if the color is unknown to this resolver.
    • resolve

      @Nullable static @Nullable ColorValue resolve(PageCompiler compiler, String id)
      Helper to resolve a symbolic color from both the pre-defined colors in SymbolicColor, as well as user-supplied symbolic color resolvers.
      Returns:
      null when the color cannot be resolved.