Contribution Guide | 贡献指南
- Set the hard wrap at position to
140
columns.Editor
->Code Style
->General
- Set tab size to
4
spaces, indent to4
spaces, and continuation indent to4
spaces.Editor
->Code Style
->Java
->Tabs and Indents
- Set the class count to use
import
with*
to9999
, and set the names count to use staticimport
with*
to9999
.Editor
->Code Style
->Java
->Imports
org.jetbrains.annotations.NotNull
indicates that the parameter cannot benull
. You should address allIDEA
warnings caused by not using this annotation, including the@
symbol warnings before a paragraph and yellow-highlighted parameter warnings.org.jetbrains.annotations.Nullable
indicates that the parameter can benull
. You should address allIDEA
warnings caused by not using this annotation, including the@
symbol warnings before a paragraph and yellow-highlighted parameter warnings.
- When committing, please use the format
git commit -m "commit message"
. - If the
commit
is for resolving or fixing anissue
, please include#issue number
in thecommit message
. - We do not restrict the language used in the
commit message
, but please include at least a simple English description and place it before descriptions in other languages. - If you add new classes or public methods in the
dev.dubhe.anvilcraft.api
package, please provide completeJavadoc
documentation for them. If you modify any public or non-public methods in this package, ensure their binary compatibility.
- The title of a
Pull Request
should include at least a simple English description and place it before titles in other languages. - You should provide a detailed explanation of your changes in the
Pull Request
description. - Use
fixed
orresolved
in thePull Request
description to link the correspondingissue
. - Below is a simple
Pull Request
example:-
- fixed #1533
- When mining mob amber block now, the data containing mob will be correctly saved.
- Fixed some errors in data and language files.
-