本文整理汇总了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;
}
}
示例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 "";
}
示例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;
}
示例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;
}
}
示例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);
}
示例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;
}
}
示例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)");
}