Java Code Examples for org.bukkit.DyeColor#MAGENTA

The following examples show how to use org.bukkit.DyeColor#MAGENTA . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VillagerShop.java    From Shopkeepers with GNU General Public License v3.0 6 votes vote down vote up
private DyeColor getProfessionWoolColor() {
	switch (profession) {
	case FARMER:
		return DyeColor.BROWN;
	case LIBRARIAN:
		return DyeColor.WHITE;
	case PRIEST:
		return DyeColor.MAGENTA;
	case BLACKSMITH:
		return DyeColor.GRAY;
	case BUTCHER:
		return DyeColor.SILVER;
	default:
		// TODO update this once we only support MC 1.11 upwards
		if (profession.name().equals("NITWIT")) {
			return DyeColor.GREEN;
		}
		// unknown profession:
		return DyeColor.RED;
	}
}
 
Example 2
Source File: MiscUtil.java    From CardinalPGM with MIT License 5 votes vote down vote up
public static DyeColor convertChatColorToDyeColor(ChatColor chatColor) {
    switch (chatColor) {
        case WHITE:
            return DyeColor.WHITE;
        case AQUA:
            return DyeColor.LIGHT_BLUE;
        case GOLD:
            return DyeColor.ORANGE;
        case LIGHT_PURPLE:
            return DyeColor.MAGENTA;
        case YELLOW:
            return DyeColor.YELLOW;
        case GREEN:
            return DyeColor.LIME;
        case RED:
            return DyeColor.PINK;
        case GRAY:
            return DyeColor.SILVER;
        case DARK_GRAY:
            return DyeColor.GRAY;
        case DARK_AQUA:
            return DyeColor.CYAN;
        case DARK_PURPLE:
            return DyeColor.PURPLE;
        case DARK_BLUE:
            return DyeColor.BLUE;
        case BLUE:
            return DyeColor.BLUE;
        case DARK_GREEN:
            return DyeColor.GREEN;
        case DARK_RED:
            return DyeColor.RED;
        case BLACK:
            return DyeColor.BLACK;
    }

    return DyeColor.WHITE;
}