Update CONTRIBUTING.md
* Update CONTRIBUTING.md
* Update CONTRIBUTING.md
Ok that works to but i meant for that to mean 'put all your annotation stuff here' obviously it wont compile, but this works too
@@ -11,8 +11,8 @@ Thank for for considering a contribution! Generally, Geyser welcomes PRs from ev
We have some general style guides that should be applied throughout the code:
```java
-
-private static final AIR_ITEM = 0; // Static item names should be capitalized
+public class LongClassName {
+ private static final int AIR_ITEM = 0; // Static item names should be capitalized
public Int2IntMap items = new Int2IntOpenHashMap(); // Use the interface as the class type but initialize with the implementation.
@@ -21,7 +21,11 @@ public int nameWithMultipleWords = 0;
/**
* Javadoc comment to explain what a function does.
*/
+ @RandomAnnotation(stuff = true, moreStuff = "might exist")
public void applyStuff() {
+ Variable variable = new Variable();
+ Variable otherVariable = new Variable();
+
if (condition) {
// Do stuff.
} else if (anotherCondition) {
@@ -30,9 +34,12 @@ public void applyStuff() {
switch (value) {
case 0:
+ stuff();
break;
case 1:
- break:
+ differentStuff();
+ break;
+ }
}
}
```
