summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/material/Colorable.java
blob: 0c0f71405219e178bee94c14122129dc37ad12e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package org.bukkit.material;

import org.bukkit.DyeColor;

/**
 * An object that can be colored.
 */
public interface Colorable {

    /**
     * Gets the color of this object.
     * <br>
     * This may be null to represent the default color of an object.
     *
     * @return The DyeColor of this object.
     */
    public DyeColor getColor();

    /**
     * Sets the color of this object to the specified DyeColor.
     * <br>
     * This may be null to represent the default color of an object.
     *
     * @param color The color of the object, as a DyeColor.
     */
    public void setColor(DyeColor color);

}