IntelliJ reformat on utilities

This commit is contained in:
Mariell Hoversholm committed 2020-09-05 16:22:40 +02:00
1 parent 89a52d4765
commit 82c9f2867e
2 files changed
+15 -12

No files matched your search

@@ -51,6 +51,16 @@ public final class CarbonUtils {
@NotNull
private static final String[] colors;
static {
ArrayList<String> colorList = new ArrayList<>();
for (NamedTextColor color : NamedTextColor.values()) {
colorList.add(color.toString());
}
colors = colorList.toArray(new String[0]);
}
@NotNull
public static Component createComponent(@NotNull final Player player) {
if (!FunctionalityConstants.HAS_HOVER_EVENT_METHOD) {
@@ -157,7 +167,7 @@ public final class CarbonUtils {
@NotNull
public static Argument textColorArgument() {
return new CustomArgument<>((input) -> {
TextColor color = parseColor(input);
TextColor color = parseColor(input);
if (color == null) {
throw new CustomArgument.CustomArgumentException("Invalid color for input (" + input + ")");
@@ -196,14 +206,4 @@ public final class CarbonUtils {
throw new NotImplementedException("Not implemented yet.");
}
static {
ArrayList<String> colorList = new ArrayList<>();
for (NamedTextColor color : NamedTextColor.values()) {
colorList.add(color.toString());
}
colors = colorList.toArray(new String[0]);
}
}
@@ -9,7 +9,8 @@ public interface Registry<T> {
/**
* Adds the specified key and value to the registry
* @param key The entry's key
*
* @param key The entry's key
* @param value The value to insert
* @return If successfully registered
*/
@@ -17,6 +18,7 @@ public interface Registry<T> {
/**
* Gets the list of registered values
*
* @return The list of registered values
*/
@NotNull
@@ -24,6 +26,7 @@ public interface Registry<T> {
/**
* Obtains an entry associated with the specified key
*
* @param key The key for the entry
* @return The entry associated with the key
*/