-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed OSS constructing with quest 0 task 0 instead of -1
Fixed OSS not accepting piped items Added better leniency to duplicate supporter entries Added more WIP code to theme uncataloguing system
- Loading branch information
Showing
7 changed files
with
83 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ minecraft { | |
} | ||
|
||
repositories { | ||
mavenCentral() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
|
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
37 changes: 37 additions & 0 deletions
37
src/main/java/betterquesting/api2/supporter/theme_dlc/ThemeRepository.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 betterquesting.api2.supporter.theme_dlc; | ||
|
||
import betterquesting.api.utils.JsonHelper; | ||
import com.google.gson.JsonObject; | ||
|
||
import javax.annotation.Nonnull; | ||
import java.util.ArrayList; | ||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
public class ThemeRepository | ||
{ | ||
private final String repoAddress; | ||
public String repoName = "Unknown Theme Repository"; | ||
|
||
private final List<CatalogueEntry> entries = new ArrayList<>(); | ||
|
||
public ThemeRepository(@Nonnull String address) | ||
{ | ||
repoAddress = address; | ||
} | ||
|
||
public String getAddress() | ||
{ | ||
return this.repoAddress; | ||
} | ||
|
||
public List<CatalogueEntry> getEntries() | ||
{ | ||
return Collections.unmodifiableList(entries); | ||
} | ||
|
||
public void loadRepository(@Nonnull JsonObject json) | ||
{ | ||
repoName = JsonHelper.GetString(json, "repoName", "Unknown Repository"); | ||
} | ||
} |
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