本文整理汇总了Java中org.bukkit.ChatColor.DARK_AQUA属性的典型用法代码示例。如果您正苦于以下问题:Java ChatColor.DARK_AQUA属性的具体用法?Java ChatColor.DARK_AQUA怎么用?Java ChatColor.DARK_AQUA使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.bukkit.ChatColor
的用法示例。
在下文中一共展示了ChatColor.DARK_AQUA属性的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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;
}
示例2: getDisplayName
public static String getDisplayName(@Nullable PlayerId target, CommandSender viewer) {
if(target == null) {
return CONSOLE_DISPLAY_NAME;
} else {
Player targetPlayer = Bukkit.getPlayerExact(target.username(), viewer);
if(targetPlayer == null) {
return ChatColor.DARK_AQUA + target.username();
} else {
return targetPlayer.getDisplayName(viewer);
}
}
}
示例3: CommandNotFoundException
public CommandNotFoundException ()
{
super (ChatColor.DARK_AQUA + "No command exists with those arguments");
}
示例4: generateShort
private static Object[] generateShort(final Spellcast spellcast, int row, int col, final Spell s, final Player p, final PlayerDataRPG pd, final boolean villager) {
boolean passive = s.isPassive();
if (passive)
return null;
final int currentLevel = pd.getSpellLevel(s);
if (currentLevel <= 0 || currentLevel > s.maxLevel)
return null;
Object[] o = new Object[6];
o[0] = row;
o[1] = col;
if (pd.usingSpell(s))
o[2] = Material.SLIME_BALL;
else
o[2] = Material.SNOW_BALL;
o[3] = ChatColor.GREEN + s.name + ChatColor.GRAY + " - " + ChatColor.DARK_AQUA + s.manaCost + " Mana";
ArrayList<Object> info = new ArrayList<Object>();
info.add(ChatColor.GRAY + ChatColor.ITALIC.toString());
info.add("Click to bind this spell to " + spellcast.toString() + ".");
info.add(ChatColor.GOLD);
info.add("Current Level: " + currentLevel);
info.add(null);
info.add("");
info.add(ChatColor.AQUA);
info.add(s.getDescription(currentLevel));
o[4] = info.toArray(new Object[info.size()]);
Runnable r = new Runnable() {
public void run() {
switch (spellcast) {
case RLL:
p.sendMessage(ChatColor.GREEN + "Bound " + ChatColor.YELLOW + s.name + ChatColor.GREEN + " to spellcast " + ChatColor.YELLOW + "RLL" + ChatColor.GREEN + "!");
pd.spell_RLL = s;
showClassSpellMenu(p, pd, villager);
break;
case RLR:
p.sendMessage(ChatColor.GREEN + "Bound " + ChatColor.YELLOW + s.name + ChatColor.GREEN + " to spellcast " + ChatColor.YELLOW + "RLR" + ChatColor.GREEN + "!");
pd.spell_RLR = s;
showClassSpellMenu(p, pd, villager);
break;
case RRL:
p.sendMessage(ChatColor.GREEN + "Bound " + ChatColor.YELLOW + s.name + ChatColor.GREEN + " to spellcast " + ChatColor.YELLOW + "RRL" + ChatColor.GREEN + "!");
pd.spell_RRL = s;
showClassSpellMenu(p, pd, villager);
break;
case RRR:
p.sendMessage(ChatColor.GREEN + "Bound " + ChatColor.YELLOW + s.name + ChatColor.GREEN + " to spellcast " + ChatColor.YELLOW + "RRR" + ChatColor.GREEN + "!");
pd.spell_RRR = s;
showClassSpellMenu(p, pd, villager);
break;
}
}
};
o[5] = r;
return o;
}
示例5: getColor
@Override
public ChatColor getColor() {
return ChatColor.DARK_AQUA;
}
示例6: getTeamMessageFormat
private String getTeamMessageFormat(Player player, String message) {
return ChatColor.DARK_AQUA + "(Team) " + player.getName() + ": " + ChatColor.YELLOW + message;
}
示例7: getGameTag
@Override
public String getGameTag()
{
return ChatColor.DARK_AQUA + "[" + ChatColor.AQUA + (this.nameShortcut != null ? this.nameShortcut : this.game.getGameName()) + ChatColor.DARK_AQUA + "]" + ChatColor.RESET;
}
示例8: checkArgsLength
/**
* This method checks to see if the arguments passed into it are
* valid for a CraftyProfession Command.
*
* @param args The Array of arguments to check the length of
*
* @return True If the argument length is > 0
*
* @throws TooFewArgumentException This Argument is thrown when someone
* issues a command that has zero arguments.
*/
private boolean checkArgsLength (String... args) throws TooFewArgumentException
{
if (!(args.length > 0))
{
throw new TooFewArgumentException (ChatColor.DARK_AQUA + "Too Few Arguments in command");
}
return true;
}