当前位置: 首页>>代码示例>>Java>>正文


Java ChatColor.LIGHT_PURPLE属性代码示例

本文整理汇总了Java中org.bukkit.ChatColor.LIGHT_PURPLE属性的典型用法代码示例。如果您正苦于以下问题:Java ChatColor.LIGHT_PURPLE属性的具体用法?Java ChatColor.LIGHT_PURPLE怎么用?Java ChatColor.LIGHT_PURPLE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.bukkit.ChatColor的用法示例。


在下文中一共展示了ChatColor.LIGHT_PURPLE属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getColor

public static Color getColor(ChatColor color) {
    if (color == ChatColor.RED) {
        return Color.RED;
    } else if (color == ChatColor.BLUE) {
        return Color.BLUE;
    } else if (color == ChatColor.LIGHT_PURPLE) {
        return Color.FUCHSIA;
    } else if (color == ChatColor.GREEN) {
        return Color.GREEN;
    } else if (color == ChatColor.YELLOW) {
        return Color.YELLOW;
    } else if (color == ChatColor.GOLD) {
        return Color.ORANGE;
    } else if (color == ChatColor.AQUA) {
        return Color.AQUA;
    } else if (color == ChatColor.DARK_PURPLE) {
        return Color.PURPLE;
    } else {
        return Color.WHITE;
    }
}
 
开发者ID:WarzoneMC,项目名称:Warzone,代码行数:21,代码来源:ColorConverter.java

示例2: ShowFatigue

@SuppressWarnings("deprecation")
public static String ShowFatigue(Player player)
{
	int fatigue = mainBoard.getObjective("Fatigue").getScore(player).getScore();

	if(fatigue <= 0)
		return ChatColor.YELLOW + Words.get("Energized");
	else if(fatigue == 1)
		return ChatColor.LIGHT_PURPLE + Words.get("Sleepy");
	else if(fatigue == 2)
		return ChatColor.RED + Words.get("Overworked");
	else if(fatigue == 3)
		return ChatColor.WHITE + Words.get("Distressed");
	else if(fatigue >= 4)
		return ChatColor.DARK_GRAY + Words.get("Collapsed");
	else
		return "";
}
 
开发者ID:FattyMieo,项目名称:SurvivalPlus,代码行数:18,代码来源:Survival.java

示例3: convertDyeColorToChatColor

public static ChatColor convertDyeColorToChatColor(DyeColor dye) {
    switch (dye) {
        case WHITE:
            return ChatColor.WHITE;
        case ORANGE:
            return ChatColor.GOLD;
        case MAGENTA:
            return ChatColor.LIGHT_PURPLE;
        case LIGHT_BLUE:
            return ChatColor.BLUE;
        case YELLOW:
            return ChatColor.YELLOW;
        case LIME:
            return ChatColor.GREEN;
        case PINK:
            return ChatColor.RED;
        case GRAY:
            return ChatColor.DARK_GRAY;
        case SILVER:
            return ChatColor.GRAY;
        case CYAN:
            return ChatColor.DARK_AQUA;
        case PURPLE:
            return ChatColor.DARK_PURPLE;
        case BLUE:
            return ChatColor.DARK_BLUE;
        case BROWN:
            return ChatColor.GOLD;
        case GREEN:
            return ChatColor.DARK_GREEN;
        case RED:
            return ChatColor.DARK_RED;
        case BLACK:
            return ChatColor.BLACK;
    }

    return ChatColor.WHITE;
}
 
开发者ID:WarzoneMC,项目名称:Warzone,代码行数:38,代码来源:ColorConverter.java

示例4: getTierColor

public static ChatColor getTierColor(int tier) {
    switch (tier) {
        case 5:
            return ChatColor.RED;
        case 4:
            return ChatColor.LIGHT_PURPLE;
        case 3:
            return ChatColor.AQUA;
        case 2:
            return ChatColor.GREEN;
        case 1:
        default:
            return ChatColor.WHITE;
    }
}
 
开发者ID:edasaki,项目名称:ZentrelaRPG,代码行数:15,代码来源:MobType.java

示例5: Well

Well(Hub hub, Location cauldronLocation, Location standsLocation)
{
    super(hub);

    this.cauldronLocation = cauldronLocation;

    this.hologram = new Hologram(ChatColor.DARK_PURPLE + "" + ChatColor.BOLD + "Puit magique", ChatColor.LIGHT_PURPLE + "Créez des perles avec vos poussières d'\u272F");
    this.hologram.generateLines(standsLocation);

    final Location particleCenter = cauldronLocation.clone().add(0.5D, 0.5D, 0.5D);
    this.particleTask = hub.getServer().getScheduler().runTaskTimer(hub, () -> ParticleEffect.CRIT_MAGIC.display(0.5F, 0.5F, 0.5F, 0.35F, 10, particleCenter, 100.0D), 5L, 5L);
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:12,代码来源:Well.java

示例6: stringToChatColor

public static ChatColor stringToChatColor(String str) {
	switch(str.toLowerCase()) {
		case "aqua":
			return ChatColor.AQUA;
		case "black":
			return ChatColor.BLACK;
		case "blue":
			return ChatColor.BLUE;
		case "dark_blue":
			return ChatColor.DARK_BLUE;
		case "dark_gray":
			return ChatColor.DARK_GRAY;
		case "dark_green":
			return ChatColor.DARK_GREEN;
		case "dark_purple":
			return ChatColor.DARK_PURPLE;
		case "dark_red":
			return ChatColor.DARK_RED;
		case "gold":
			return ChatColor.GOLD;
		case "gray":
			return ChatColor.GRAY;
		case "green":
			return ChatColor.GREEN;
		case "light_puple":
			return ChatColor.LIGHT_PURPLE;
		case "white":
			return ChatColor.WHITE;
		case "yellow":
			return ChatColor.YELLOW;
		default:
			return ChatColor.RED;
	}
}
 
开发者ID:benNek,项目名称:AsgardAscension,代码行数:34,代码来源:Convert.java

示例7: getDeathMessage

public String getDeathMessage(OMGPlayer damaged) {
    String r = new String[]{" was shot by ", " caught an arrow from "}[new Random().nextInt(2)];
    double sh = damaged.lastProjectileShotBy.getLocation().distance(OMGPI.g.shootSource(damaged.lastProjectileShotBy));
    return SPACING + damaged + SPACING + r + damaged.lastDamager + SPACING + "!" + (damaged.lastDamager == null ? "" : " (From " + (sh > 200 ? ChatColor.DARK_RED + "" + ChatColor.BOLD : (sh > 150 ? ChatColor.WHITE : (sh > 100 ? ChatColor.LIGHT_PURPLE : (sh > 50 ? ChatColor.RED : (sh > 25 ? ChatColor.YELLOW : ChatColor.GREEN))))) + (sh + "").split("\\.")[0] + "." + (sh + "").split("\\.")[1].substring(0, 1) + SPACING + " blocks)");
}
 
开发者ID:BurnyDaKath,项目名称:OMGPI,代码行数:5,代码来源:OMGDamageCause.java


注:本文中的org.bukkit.ChatColor.LIGHT_PURPLE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。