@Override public String toString() { return "CustomObject(" + StringHelper.join(objectNames, ",") + ")"; }
@Override public String write(List<String> value) { return StringHelper.join(value, ", "); }
/** * Constructs a new exception. Used for failed lookups using a biome id. * * @param biomeId * The id of the biome. * @param biomes * All biomes in the list. {@link Object#toString()} is used to * print the biomes. */ public BiomeNotFoundException(int biomeId, Collection<?> biomes) { super("Biome with id " + biomeId + " not found; available biomes: " + StringHelper.join(biomes, ", ")); this.biomeName = "biome-" + biomeId; }
/** * Constructs a new exception. Used for failed lookups using a biome name. * * @param biomeName * The biome name that was not found. * @param biomes * All biomes in the list. {@link Object#toString()} is used to * print the biomes. */ public BiomeNotFoundException(String biomeName, Collection<?> biomes) { super("Biome " + biomeName + " not found; available biomes: " + StringHelper.join(biomes, ", ")); this.biomeName = biomeName; }
@Override public String toString() { return "BiomeGroup(" + name + ", " + generationDepth + ", " + groupRarity + ", " + StringHelper.join(biomes.keySet(), ", ") + ")"; }
@Override public String toString() { return "## INVALID " + name.toUpperCase() + " - " + error + " ##" + System.getProperty( "line.separator") + name + "(" + StringHelper.join(args, ",") + ")"; }
public static String join(final Collection<?> coll, final String glue) { return join(coll.toArray(new Object[coll.size()]), glue); }
/** * Logs the message(s) with the given importance. Message will be prefixed * with [TerrainControl], so don't do that yourself. * * @param level The severity of the message * @param message The messages to log */ public void log(LogMarker level, List<String> message) { log(level, "{}", (Object) StringHelper.join(message, " ")); }
private SurfaceGenerator readSurfaceAndGroundControlSettings(SettingsMap settings) { // Get default value SurfaceGenerator defaultSetting; if (settings.isNewConfig()) { String defaultString = StringHelper.join(defaultSettings.defaultSurfaceSurfaceAndGroundControl, ","); try { defaultSetting = BiomeStandardValues.SURFACE_AND_GROUND_CONTROL.read(defaultString); } catch (InvalidConfigException e) { throw new AssertionError(e); } } else { defaultSetting = new SimpleSurfaceGenerator(); } return settings.getSetting(BiomeStandardValues.SURFACE_AND_GROUND_CONTROL, defaultSetting); }
" Tree(10,Taiga1,35,Taiga2,100) - plugin tries 10 times, for each attempt it tries to place Taiga1 (35% chance),", " if that fails, it attempts to place Taiga2 (100% chance).", "PlantType: one of the plant types: " + StringHelper.join(PlantType.values(), ", "), " or simply a BlockName", "IceSpikeType: one of the ice spike types: " + StringHelper.join(IceSpikeGen.SpikeType.values(), ","), "Object: can be a any kind of custom object (bo2 or bo3) but without the file extension. You can", " also use UseWorld to spawn one of the object in the WorldObjects folder and UseBiome to spawn", "Works like Tree resource instead first parameter.", "", "Sapling types: " + StringHelper.join(SaplingType.values(), ", "), "All - will make the tree spawn from all saplings, but not from mushrooms.", "BigJungle - for when 4 jungle saplings grow at once.",