Package net.ixdarklord.folios.internal
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.ixdarklord.coolcatcore.api.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.ixdarklord.coolcatcore.api.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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
read
Returns the value of thereadrecord component.- Returns:
- the value of the
readrecord component
-
seen
Returns the value of theseenrecord component.- Returns:
- the value of the
seenrecord component
-
questsDone
Returns the value of thequestsDonerecord component.- Returns:
- the value of the
questsDonerecord component
-
celebrated
Returns the value of thecelebratedrecord component.- Returns:
- the value of the
celebratedrecord component
-
obtained
Returns the value of theobtainedrecord component.- Returns:
- the value of the
obtainedrecord component
-
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
Returns the value of thelastChapterrecord component.- Returns:
- the value of the
lastChapterrecord component
-
lastPage
public int lastPage()Returns the value of thelastPagerecord component.- Returns:
- the value of the
lastPagerecord component
-