Carbon-Config-Project / CarbonConfig

Apache License 2.0
3 stars 2 forks source link

More Control of newLining for Configs as File without stupid level of nesting #24

Open Xaikii opened 5 months ago

Xaikii commented 5 months ago

Currently we can use CompoundBuilder::setNewLined which allows us to turn this: [id: minecraft:protection; prio: 10; TextColor: 0xff9251c0; BackgroundColor: 0xee151515; BorderstartColor: 0xff5f7dad; BorderendColor: 0xff5d8c61;] into this: [id: minecraft:protection; prio: 10; TextColor: 0xff9251c0; BackgroundColor: 0xee151515; BorderstartColor: 0xff5f7dad; BorderendColor: 0xff5d8c61;] Could we get more control for this with manually inserting an incoming newLine to also be able to do this?: [id: minecraft:protection; prio: 10; TextColor: 0xff9251c0; BackgroundColor: 0xee151515; BorderstartColor: 0xff5f7dad; BorderendColor: 0xff5d8c61;]

Speiger commented 5 months ago

Yeah this might become handy