mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-18 19:29:32 +00:00
Add package info and fix nullability
Everything defaults to nonnull now, and is labeled where null is likely
This commit is contained in:
1 parent
c96d1f4f05
commit
f1037ce21a
61 files changed
+386
-256
No files matched your search
@@ -103,7 +103,7 @@ public class SectionData implements IDataItem {
|
||||
return this.pages.size();
|
||||
}
|
||||
|
||||
public boolean isUnlocked(BookScreen.AdvancementCache advancementCache) {
|
||||
public boolean isUnlocked(@Nullable BookScreen.AdvancementCache advancementCache) {
|
||||
if (advancementCache == null || this.requirements == null || this.requirements.size() == 0) {
|
||||
return true;
|
||||
}
|
||||
@@ -117,7 +117,7 @@ public class SectionData implements IDataItem {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static boolean requirementSatisfied(String requirement, BookScreen.AdvancementCache advancementCache) {
|
||||
public static boolean requirementSatisfied(String requirement, @Nullable BookScreen.AdvancementCache advancementCache) {
|
||||
if (advancementCache == null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user