Paste #45764: Untitled Paste

Date: 2017/11/29 16:44:46 UTC-08:00
Type: Server Log

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12


        // <--[tag]
        // @attribute <l@location.bed_color>
        // @returns Element
        // @description
        // Returns the base color of the bed at this location.
        // For the list of possible colors, see <@link url http://bit.ly/1dydq12>.
        // -->
        if (attribute.startsWith("bed_color")) {
            DyeColor color = ((Bed) getBlock().getState()).getColor();
            return new Element(color != null ? color.name() : "BLACK").getAttribute(attribute.fulfill(1));
        }