Contribution Guide | 贡献指南
- Import Java code style configuration (must)
- HERE TO VIEW
Settings->Editor->Code Style->Java->Scheme->Import Scheme
- Import color scheme (optional)
- HERE TO VIEW
Settings->Editor->Color Scheme->Import Scheme
- Add
CheckStyle-IDEAplugin (optional)Plugins->Marketplace- Search for
CheckStyle-IDEAplugin, made byJamie Shielland apply it Settings->Tools->CheckStyle->Configuration File->+/Add-> Choose thestyle.xmlfile in the root folder of this projectSettings->Tools->CheckStyle->Configuration File-> Uncheck other entries except the entry added before
- In all packages, place the
package-info.javafile and add the following annotations to the package.net.minecraft.MethodsReturnNonnullByDefaultjavax.annotation.ParametersAreNonnullByDefault
- For parameters/fields/return values that need to be indicated as
null, usejavax.annotation.Nullable.
- When committing, please use the format
git commit -m "commit message". - If the
commitis for resolving or fixing anissue, please include#issue numberin 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.apipackage, please provide completeJavadocdocumentation for them. If you modify any public or non-public methods in this package, ensure their binary compatibility.
- The title of a
Pull Requestshould 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 Requestdescription. - Use
fixedorresolvedin thePull Requestdescription to link the correspondingissue. - Below is a simple
Pull Requestexample:-
### Fix drop of mob amber blocks - fixed #1533 - When mining mob amber block now, the data containing mob will be correctly saved. - Fixed some errors in data and language files.
-
- fixed #1533
- When mining mob amber block now, the data containing mob will be correctly saved.
- Fixed some errors in data and language files.
-