mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-06-23 13:14:56 +02:00
23 lines
414 B
Java
23 lines
414 B
Java
|
package com.onarandombox.MultiverseCore.display;
|
||
|
|
||
|
import org.bukkit.ChatColor;
|
||
|
|
||
|
/**
|
||
|
* Tools to allow customisation.
|
||
|
*/
|
||
|
@FunctionalInterface
|
||
|
public interface ColorTool {
|
||
|
|
||
|
/**
|
||
|
* Gets a chat color.
|
||
|
*
|
||
|
* @return The color.
|
||
|
*/
|
||
|
ChatColor get();
|
||
|
|
||
|
/**
|
||
|
* Default implementation of this interface. Returns a default white color.
|
||
|
*/
|
||
|
ColorTool DEFAULT = () -> ChatColor.WHITE;
|
||
|
}
|