Revert "Format code [skip actions]"

This reverts commit 22e953b636.
This commit is contained in:
KingRainbow44
2023-06-04 17:50:55 -04:00
Unverified
parent 22e953b636
commit eb17d65330
4 changed files with 15 additions and 10 deletions
@@ -14,11 +14,10 @@ public final class DropType {
public DropType(String value) {
this.raw = value;
this.value =
switch (value) {
default -> Integer.parseInt(value);
case "ForceDrop" -> 2;
};
this.value = switch (value) {
default -> Integer.parseInt(value);
case "ForceDrop" -> 2;
};
}
/**
@@ -32,7 +31,8 @@ public final class DropType {
* @return The drop type value as a string.
*/
public String getAsString() {
if (this.raw instanceof String) return (String) this.raw;
if (this.raw instanceof String)
return (String) this.raw;
throw new UnsupportedOperationException();
}
@@ -40,7 +40,8 @@ public final class DropType {
* @return The drop type value as an integer.
*/
public int getAsInt() {
if (this.raw instanceof Integer) return (int) this.raw;
if (this.raw instanceof Integer)
return (int) this.raw;
throw new UnsupportedOperationException();
}
}