Add package info and fix nullability

Everything defaults to nonnull now, and is labeled where null is likely
This commit is contained in:
KnightMiner committed 2020-07-22 20:43:55 -05:00
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;
}