-
Notifications
You must be signed in to change notification settings - Fork 16
Contributing
If you feel that a specific feature or issue is not sufficiently addressed in HoloAPI, feel free to fork the repository and start hacking to your heart's content. We are always open to suggestions and improvements.
If you need any help or want to talk to us, come join us in IRC - #dsh105 @ irc.esper.net.
##Getting Started To contribute changes to HoloAPI, first off make sure that you have a free GitHub account. If you're familiar with Git and GitHub, skip straight over to our general expectations, coding requirements and Pull Request formatting expectations.
If you're not familiar with Git or GitHub, use the following guide to get started.
- Fork the repository on GitHub
- Push your code to the forked repo and submit a Pull Request
- Create a branch on your fork where you'll be making your changes, making sure that it is named appropriately
- Creating a branch is as simple as doing the following:
git branch branchName
- Then checkout the new branch with
git checkout branchName
- Check for unnecessary whitespace with git diff --check before committing.
- Creating a branch is as simple as doing the following:
##General Expectations
- If you're editing any of our volatile Minecraft Internal code, make sure you know exactly what you are doing and what you are changing.
- This also applies to our built-in NMS, Reflection and NBT libraries.
- Additions to these areas may likely be accepted if they provide useful changes.
- Make sure that:
- You follow the coding requirements as outlined
- Your commit messages are in the [appropriate format]((Contributing#commit-messages)
- Your Pull Request is formatted appropriately, according to our guidelines.
- You're compiling using Java 6.
- Your contributions are TESTED and work as expected.
##Code Requirements General guidelines:
- We generally follow the Sun/Oracle coding standards and format.
- No tabs; only 4 spaces. Eclipse tends to like tabs, so make sure you fix that.
- No 'weird' mid-statement new lines or column limit.
- Any major additions or changes should have documentation provided in the Pull Request
- Imports should be nice and organised.
Note: Pull Requests will NOT be merged unless they follow these standards.
Field naming generally follows the Sun/Oracle standards, with lowerCamelCase applying to most instances. Hungarian notation should never be used
Static and final fields should always be UPPERCASE, where spaces are replaced with a "_".
public class MyAwesomeClass {
private final SuperCoolObject SOME_OBJECT;
public MyAwesomeClass() {
this.SOME_OBJECT = new SuperCoolObject();
}
}
Methods are always named in lowerCamelCase.
e.g.
public void doSomethingReallyCool() {
// Do something cool
}
Class names must be named using AlphaNumeric chars only in UpperCamelCase
e.g.
public class MyAwesomeClass {
public MyAwesomeClass() {
}
}
For anything not specifically mentioned here, see the Oracle Documentation linked above.
##Commit Messages Commit messages must be appropriate and abide by the following expectations:
- The first line should briefly explain what the commit is achieving and should include any associated ticket numbers from the Issue Tracker. Multiple tickets may be referenced in one commit message. Tickets may be referenced using the following keywords:
- Fixes #1
- If necessary, the body of the commit message may be used to further elaborate the need for the change addressed in the commit.
##Pull Request Formatting Pull Request formatting guidelines for HoloAPI are very similar to that of Bukkit (if you are familiar with that).
Pull Requests should be formatted as follows.
####Title
Brief Summary. Fixes #1
Title example Provide a PR formatting example for Wiki. Fixes #1
####Description
#####The Issue Brief summary explaining what this PR is addressing
#####Justification for this PR: Provide an explanation of why the proposed changes are required
#####PR Breakdown Explanation of what this PR achieves and what the code is doing.
#####Relevant PR(s) and Issue(s) If applicable, link to any related PR(s) and Issue(s), accompanied with a reason as to why it is being referenced.
e.g. https://github.com/DSH105/HoloAPI/pull/#### - Reason
Feel like you can make HoloAPI better? Got something awesome to contribute? We're always looking for help! Feel free to place a fork in this repository and submit a pull request!
Setting up Images and Animations
Using the API - Step by Step Code Examples
Got something to share? Or just want to talk with the creators of HoloAPI? Come join us in IRC - #dsh105
@ irc.esper.net