Skip to content

Commit d45fc1f

Browse files
committed
Apply checkstyle
1 parent c3bfc2f commit d45fc1f

11 files changed

Lines changed: 1063 additions & 8 deletions

File tree

.editorconfig

Lines changed: 1013 additions & 0 deletions
Large diffs are not rendered by default.

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ plugins {
77
signing
88

99
id("org.cadixdev.licenser") version "0.6.1"
10+
11+
idea
12+
eclipse
1013
}
1114

1215
java {

src/main/java/me/arcaniax/hdb/api/DatabaseLoadEvent.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,5 @@ public int getAmount() {
5757
public HandlerList getHandlers() {
5858
return handlers;
5959
}
60+
6061
}

src/main/java/me/arcaniax/hdb/api/HeadDatabaseAPI.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
import org.bukkit.block.Block;
3131
import org.bukkit.inventory.ItemStack;
3232

33-
import java.util.ArrayList;
34-
import java.util.List;
33+
import java.util.ArrayList;
34+
import java.util.List;
3535
import java.util.UUID;
3636

3737
public class HeadDatabaseAPI {
@@ -41,7 +41,8 @@ public class HeadDatabaseAPI {
4141
*
4242
* @param prefix The prefix to use
4343
*/
44-
public void setPrefixID(String prefix) {}
44+
public void setPrefixID(String prefix) {
45+
}
4546

4647
/**
4748
* Checks whether a head exists with the given ID

src/main/java/me/arcaniax/hdb/api/PlayerClickHeadEvent.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.bukkit.inventory.ItemStack;
3434

3535
public class PlayerClickHeadEvent extends Event {
36+
3637
private static final HandlerList handlers = new HandlerList();
3738
private final Player player;
3839
private final CategoryEnum categoryEnum;
@@ -43,7 +44,14 @@ public class PlayerClickHeadEvent extends Event {
4344
private EconomyEnum economyEnum = EconomyEnum.CURRENCY;
4445
private boolean isCancelled = false;
4546

46-
public PlayerClickHeadEvent(Player player, double price, String headID, EconomyEnum economyEnum, ItemStack head, CategoryEnum categoryEnum) {
47+
public PlayerClickHeadEvent(
48+
Player player,
49+
double price,
50+
String headID,
51+
EconomyEnum economyEnum,
52+
ItemStack head,
53+
CategoryEnum categoryEnum
54+
) {
4755
this.player = player;
4856
this.price = price;
4957
this.headID = headID;
@@ -136,4 +144,5 @@ public void setCancelled(Boolean b) {
136144
public HandlerList getHandlers() {
137145
return handlers;
138146
}
147+
139148
}

src/main/java/me/arcaniax/hdb/enums/CategoryEnum.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,21 @@
2626
package me.arcaniax.hdb.enums;
2727

2828
public enum CategoryEnum {
29-
ALPHABET, ANIMALS, BLOCKS, DECORATION, FOOD_DRINKS, HUMANS, HUMANOID, MISCELLANEOUS, MONSTERS, PLANTS, CUSTOM, CUSTOM2, CUSTOM3, CUSTOM4, CUSTOM5, ONLINE_PLAYERS, DISABLED
29+
ALPHABET,
30+
ANIMALS,
31+
BLOCKS,
32+
DECORATION,
33+
FOOD_DRINKS,
34+
HUMANS,
35+
HUMANOID,
36+
MISCELLANEOUS,
37+
MONSTERS,
38+
PLANTS,
39+
CUSTOM,
40+
CUSTOM2,
41+
CUSTOM3,
42+
CUSTOM4,
43+
CUSTOM5,
44+
ONLINE_PLAYERS,
45+
DISABLED
3046
}

src/main/java/me/arcaniax/hdb/enums/EconomyEnum.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
package me.arcaniax.hdb.enums;
2727

2828
public enum EconomyEnum {
29-
ITEM, PLAYERPOINTS, CURRENCY
29+
ITEM,
30+
PLAYERPOINTS,
31+
CURRENCY
3032

3133
}

src/main/java/me/arcaniax/hdb/enums/VanillaHeadTypeEnum.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
package me.arcaniax.hdb.enums;
2727

2828
public enum VanillaHeadTypeEnum {
29-
SKELETON, WITHER_SKELETON, ZOMBIE, CREEPER, ENDER_DRAGON, STEVE
29+
SKELETON,
30+
WITHER_SKELETON,
31+
ZOMBIE,
32+
CREEPER,
33+
ENDER_DRAGON,
34+
STEVE
3035

3136
}

src/main/java/me/arcaniax/hdb/object/head/Head.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import java.util.Collection;
3333

3434
public class Head {
35+
3536
public String b64;
3637
public String name;
3738
public String lore;
@@ -73,4 +74,5 @@ public boolean search(String input) {
7374
public ItemStack getHead() {
7475
return null;
7576
}
77+
7678
}

src/main/java/me/arcaniax/hdb/object/head/OwnHead.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
import org.bukkit.inventory.ItemStack;
3030

3131
public class OwnHead extends VanillaHead {
32+
3233
public ItemStack getHead(Player p) {
3334
return null;
3435
}
36+
3537
}

0 commit comments

Comments
 (0)