There was an error while loading. Please reload this page.
This document serves as a basic style guide for Civcraft. Anything not covered in this guide may be left to the author’s decision.
All files in all projects should be encoded in UTF-8.
The source files in a Civcraft project should be put into the following directories:
src/main/java/
src/main/resources/
src/test/java/
src/test/resources/
All class fields should never be public with the exception of constants (immutable static final fields).
Class contents should be organized as follows:
Tabs should be used for indentation while spaces should be used for alignment.
Consider using .editorconfig to help achieve this.
Lines must be no longer than 120 characters. Assume a tab width of 4 spaces.