-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: Jerry's Perkpocalypse candidate perks
and some code cleanups
- Loading branch information
Showing
8 changed files
with
152 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 94 additions & 8 deletions
102
src/main/java/codes/biscuit/skyblockaddons/utils/data/skyblockdata/ElectionData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/main/java/codes/biscuit/skyblockaddons/utils/data/skyblockdata/MayorJerryData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package codes.biscuit.skyblockaddons.utils.data.skyblockdata; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Getter; | ||
|
||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
@Getter | ||
public class MayorJerryData { | ||
|
||
@SerializedName("nextSwitch") | ||
private Long nextSwitch; | ||
@SerializedName("mayor") | ||
private Mayor mayor; | ||
|
||
public boolean hasMayorAndActive() { | ||
return mayor != null && nextSwitch >= System.currentTimeMillis(); | ||
} | ||
|
||
@Getter | ||
public static class Mayor { | ||
@SerializedName("name") | ||
private String name = "Fix3dll"; | ||
@SerializedName("perks") | ||
private List<Perk> perks = Collections.emptyList(); | ||
} | ||
|
||
@Getter | ||
public static class Perk { | ||
@SerializedName("name") | ||
private String name; | ||
@SerializedName("description") | ||
private String description; | ||
|
||
} | ||
} |