Class ColorPalette.ColorTable.Builder
java.lang.Object
com.pixelmonmod.api.client.screen.ColorPalette.ColorTable.Builder
- Enclosing class:
- ColorPalette.ColorTable
-
Method Summary
Modifier and TypeMethodDescriptionCompletely fills this color table with a given color for all screen designs and color schemes.finish()
Finishes building theColorPalette.ColorTable
, stores it in theColorPalette
, and returns back theColorPalette
.set
(Color color, ScreenStyle.ColorScheme colorScheme) Sets a given color scheme to the same color for all screen designs.set
(Color color, ScreenStyle.Design design) Sets a given screen design to the same color for all color schemes.set
(Color color, ScreenStyle.Design design, ScreenStyle.ColorScheme colorScheme) Sets a color for a given screen design and color scheme.
-
Method Details
-
fill
Completely fills this color table with a given color for all screen designs and color schemes.- Parameters:
color
- The color to fill with.- Returns:
- This builder.
-
set
Sets a given screen design to the same color for all color schemes.- Parameters:
color
- The color to set to.design
- The screen design to apply this color to.- Returns:
- This builder.
-
set
Sets a given color scheme to the same color for all screen designs.- Parameters:
color
- The color to set to.colorScheme
- The color scheme to apply this color to.- Returns:
- This builder.
-
set
public ColorPalette.ColorTable.Builder set(Color color, ScreenStyle.Design design, ScreenStyle.ColorScheme colorScheme) Sets a color for a given screen design and color scheme. This will only modify a single color position.- Parameters:
color
- The color to set to.design
- The screen design to apply this color to.colorScheme
- The color scheme to apply this color to.- Returns:
- This builder.
-
finish
Finishes building theColorPalette.ColorTable
, stores it in theColorPalette
, and returns back theColorPalette
. This also locks the table, preventing further modifications to it.- Returns:
- The
ColorPalette
that owns the newly builtColorPalette.ColorTable
.
-