Package com.bergerkiller.bukkit.common

Examples of com.bergerkiller.bukkit.common.TypedValue


      this.nextTickTasks.add(runnable);
    }
  }

  public <T> TypedValue<T> getDebugVariable(String name, Class<T> type, T value) {
    TypedValue typed = debugVariables.get(name);
    if (typed == null || typed.type != type) {
      typed = new TypedValue(type, value);
      debugVariables.put(name, typed);
    }
    return typed;
  }
View Full Code Here


        for (String variable : debugVariables.keySet()) {
          message.green(variable);
        }
      } else {
        final String varname = args[0];
        final TypedValue value = debugVariables.get(varname);
        if (value == null) {
          message.red("No debug variable of name '").yellow(varname).red("'!");
        } else {
          message.green("Value of variable '").yellow(varname).green("' ");
          if (args.length == 1) {
            message.green("= ");
          } else {
            message.green("set to ");
            value.parseSet(StringUtil.join(" ", StringUtil.remove(args, 0)));
          }
          message.white(value.toString());
        }
      }
      message.send(sender);
      return true;
    }
View Full Code Here

TOP

Related Classes of com.bergerkiller.bukkit.common.TypedValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.