@Override public String toString() { return getOutput(""); } }
public LogListBlock putChild(String key) { updateKey(key); LogListBlock block = new LogListBlock(); items.put(key, block); return block; }
public void generate() { appendReportHeader(CraftBookAPI.inst()); appendPlatformSections(); appendln("-------------"); appendln("END OF REPORT"); appendln(); }
public LogListBlock put(String key, String value, Object ... args) { put(key, String.format(value, args)); return this; }
private void appendGlobalConfiguration() { appendHeader("Global Configuration"); LogListBlock log = new LogListBlock(); LogListBlock configLog = log.putChild("Configuration"); for (ConfigValue config : CraftBookPlugin.spongeInst().getConfig().getConfigurationNodes()) { ConfigurationNode node = SimpleCommentedConfigurationNode.root(); config.serializeDefault(node); configLog.put(config.getKey(), node.getString("UNKNOWN")); } append(log); appendln(); }
private void appendPluginInformation() { Collection<PluginContainer> plugins = Sponge.getPluginManager().getPlugins(); appendHeader("Plugins (" + plugins.size() + ')'); LogListBlock log = new LogListBlock(); for (PluginContainer plugin : plugins) { log.put(plugin.getName(), plugin.getVersion().orElse("UNKNOWN")); } append(log); appendln(); }
public LogListBlock put(String key, LogListBlock value) { updateKey(key); items.put(key, value); return this; }
protected void append(LogListBlock log) { output.append(log.toString()); }
public static void paste(String code, PasteCallback callback) { PasteProcessor processor = new PasteProcessor(code, callback); Thread thread = new Thread(processor); thread.start(); }
public LogListBlock put(String key, int value) { put(key, String.valueOf(value)); return this; }
public LogListBlock put(String key, String value) { updateKey(key); items.put(key, String.valueOf(value)); return this; }
public LogListBlock put(String key, byte value) { put(key, String.valueOf(value)); return this; }
public LogListBlock put(String key, long value) { put(key, String.valueOf(value)); return this; }
public LogListBlock put(String key, short value) { put(key, String.valueOf(value)); return this; }
public LogListBlock put(String key, Object value) { put(key, String.valueOf(value)); return this; }
public LogListBlock put(String key, double value) { put(key, String.valueOf(value)); return this; }
public LogListBlock put(String key, float value) { put(key, String.valueOf(value)); return this; }
public LogListBlock put(String key, boolean value) { put(key, String.valueOf(value)); return this; }