Class FoliosMemory
java.lang.Object
net.ixdarklord.folios.internal.client.FoliosMemory
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()static voidforget()static FoliosMemoryforReading(FoliosBook book, @Nullable net.minecraft.world.InteractionHand hand) booleanisBookmarked(String entry) booleanboolean@Nullable FoliosBook.Locationlast()@Nullable StringintlastPage()booleanleftOpen()booleanmarkCelebrated(String what) booleanmarkObtained(String item) booleanmarkQuestDone(String entry) voidvoidobtained()static FoliosMemoryof(net.minecraft.resources.ResourceLocation book) intvoidsave()voidsetLast(@Nullable FoliosBook.Location location) voidsetLastSpread(@Nullable String chapter, int page) voidsetLeftOpen(boolean open) static voidsynced(Map<net.minecraft.resources.ResourceLocation, FoliosRecord> records) booleantoggleBookmark(FoliosBook.Location location)
-
Field Details
-
MAX_BOOKMARKS
public static final int MAX_BOOKMARKS- See Also:
-
-
Method Details
-
of
-
forReading
public static FoliosMemory forReading(FoliosBook book, @Nullable @Nullable net.minecraft.world.InteractionHand hand) -
synced
-
forget
public static void forget() -
save
public void save() -
isRead
-
markRead
-
isSeen
-
markSeen
-
markQuestDone
-
obtained
-
markObtained
-
markCelebrated
-
readCount
public int readCount() -
bookmarks
-
isBookmarked
-
toggleBookmark
-
last
-
setLast
-
lastChapter
-
lastPage
public int lastPage() -
setLastSpread
-
leftOpen
public boolean leftOpen() -
setLeftOpen
public void setLeftOpen(boolean open) -
clear
public void clear()
-