Package guideme.color
Interface SymbolicColorResolver
- All Superinterfaces:
Extension
This extension point can be used to register custom symbolic colors in your guide.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ColorValue
resolve
(PageCompiler compiler, String id) Helper to resolve a symbolic color from both the pre-defined colors inSymbolicColor
, as well as user-supplied symbolic color resolvers.@Nullable ColorValue
resolve
(net.minecraft.resources.ResourceLocation id) Attempt to resolve a custom symbolic color value.Methods inherited from interface guideme.extensions.Extension
onExtensionsBuilt
-
Field Details
-
EXTENSION_POINT
-
-
Method Details
-
resolve
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
Helper to resolve a symbolic color from both the pre-defined colors inSymbolicColor
, as well as user-supplied symbolic color resolvers.- Returns:
- null when the color cannot be resolved.
-