mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-26 14:53:04 +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
@@ -8,6 +8,7 @@ import slimeknights.mantle.client.book.data.content.ContentTableOfContents;
|
||||
import slimeknights.mantle.client.book.data.element.TextData;
|
||||
import slimeknights.mantle.client.screen.book.BookScreen;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
@@ -41,7 +42,7 @@ public abstract class BookTransformer {
|
||||
public void transform(BookData book) {
|
||||
SectionData index = new SectionData(true) {
|
||||
@Override
|
||||
public void update(BookScreen.AdvancementCache advancementCache) {
|
||||
public void update(@Nullable BookScreen.AdvancementCache advancementCache) {
|
||||
this.pages.clear();
|
||||
|
||||
List<SectionData> visibleSections = this.parent.getVisibleSections(advancementCache);
|
||||
|
||||
Reference in new issue
Block a user