Record Class FoliosRecord
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.FoliosRecord
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FoliosRecord> static final FoliosRecordstatic final intstatic final intstatic final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, FoliosRecord> -
Constructor Summary
ConstructorsConstructorDescriptionFoliosRecord(List<String> read, List<String> seen, List<String> questsDone, List<String> celebrated, List<String> obtained, List<FoliosRecord.Place> bookmarks, Optional<FoliosRecord.Place> last, boolean leftOpen, Optional<String> lastChapter, int lastPage) Creates an instance of aFoliosRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebookmarksrecord component.capped()Returns the value of thecelebratedrecord component.final booleanIndicates whether some other object is "equal to" this one.forStack()final inthashCode()Returns a hash code value for this object.last()Returns the value of thelastrecord component.Returns the value of thelastChapterrecord component.intlastPage()Returns the value of thelastPagerecord component.booleanleftOpen()Returns the value of theleftOpenrecord component.obtained()Returns the value of theobtainedrecord component.Returns the value of thequestsDonerecord component.read()Returns the value of thereadrecord component.seen()Returns the value of theseenrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
MAX_EACH
public static final int MAX_EACH- See Also:
-
MAX_BOOKMARKS
public static final int MAX_BOOKMARKS- See Also:
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, FoliosRecord> STREAM_CODEC
-
-
Constructor Details
-
FoliosRecord
public FoliosRecord(List<String> read, List<String> seen, List<String> questsDone, List<String> celebrated, List<String> obtained, List<FoliosRecord.Place> bookmarks, Optional<FoliosRecord.Place> last, boolean leftOpen, Optional<String> lastChapter, int lastPage) Creates an instance of aFoliosRecordrecord class.- Parameters:
read- the value for thereadrecord componentseen- the value for theseenrecord componentquestsDone- the value for thequestsDonerecord componentcelebrated- the value for thecelebratedrecord componentobtained- the value for theobtainedrecord componentbookmarks- the value for thebookmarksrecord componentlast- the value for thelastrecord componentleftOpen- the value for theleftOpenrecord componentlastChapter- the value for thelastChapterrecord componentlastPage- the value for thelastPagerecord component
-
-
Method Details
-
capped
-
forStack
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
read
-
seen
-
questsDone
-
celebrated
-
obtained
-
bookmarks
Returns the value of thebookmarksrecord component.- Returns:
- the value of the
bookmarksrecord component
-
last
Returns the value of thelastrecord component.- Returns:
- the value of the
lastrecord component
-
leftOpen
public boolean leftOpen()Returns the value of theleftOpenrecord component.- Returns:
- the value of the
leftOpenrecord component
-
lastChapter
-
lastPage
public int lastPage()Returns the value of thelastPagerecord component.- Returns:
- the value of the
lastPagerecord component
-