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


Java ChatColor.DARK_AQUA属性代码示例

本文整理汇总了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;
}
 
开发者ID:WarzoneMC,项目名称:Warzone,代码行数:38,代码来源:ColorConverter.java

示例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);
        }
    }
}
 
开发者ID:OvercastNetwork,项目名称:ProjectAres,代码行数:12,代码来源:CommandUtils.java

示例3: CommandNotFoundException

public CommandNotFoundException ()
{
    super (ChatColor.DARK_AQUA + "No command exists with those arguments");
}
 
开发者ID:MagnaRisa,项目名称:CraftyProfessions,代码行数:4,代码来源:CommandNotFoundException.java

示例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;
}
 
开发者ID:edasaki,项目名称:ZentrelaRPG,代码行数:54,代码来源:ClassManager.java

示例5: getColor

@Override
public ChatColor getColor() {
    return ChatColor.DARK_AQUA;
}
 
开发者ID:edasaki,项目名称:ZentrelaRPG,代码行数:4,代码来源:HorseVillager.java

示例6: getTeamMessageFormat

private String getTeamMessageFormat(Player player, String message) {
	return ChatColor.DARK_AQUA + "(Team) " + player.getName() + ": " + ChatColor.YELLOW + message;
}
 
开发者ID:HuliPvP,项目名称:Chambers,代码行数:3,代码来源:ChatListener.java

示例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;
}
 
开发者ID:SamaGames,项目名称:SamaGamesCore,代码行数:5,代码来源:CoherenceMachineImpl.java

示例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;
}
 
开发者ID:MagnaRisa,项目名称:CraftyProfessions,代码行数:20,代码来源:CommandController.java


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