Record Class PlayerQuests
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.quest.PlayerQuests
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PlayerQuests> static final PlayerQuests -
Constructor Summary
ConstructorsConstructorDescriptionPlayerQuests(Map<net.minecraft.resources.Identifier, PlayerQuests.Progress> quests, List<net.minecraft.resources.Identifier> obtained, Map<net.minecraft.resources.Identifier, List<String>> read, List<String> flags) Creates an instance of aPlayerQuestsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.flags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.booleanList<net.minecraft.resources.Identifier> obtained()Returns the value of theobtainedrecord component.progress(net.minecraft.resources.Identifier quest) Map<net.minecraft.resources.Identifier, PlayerQuests.Progress> quests()Returns the value of thequestsrecord component.read()Returns the value of thereadrecord component.final StringtoString()Returns a string representation of this record class.with(net.minecraft.resources.Identifier quest, PlayerQuests.Progress progress) withObtained(Set<net.minecraft.resources.Identifier> items)
-
Field Details
-
EMPTY
-
CODEC
-
-
Constructor Details
-
PlayerQuests
public PlayerQuests(Map<net.minecraft.resources.Identifier, PlayerQuests.Progress> quests, List<net.minecraft.resources.Identifier> obtained, Map<net.minecraft.resources.Identifier, List<String>> read, List<String> flags) Creates an instance of aPlayerQuestsrecord class.- Parameters:
quests- the value for thequestsrecord componentobtained- the value for theobtainedrecord componentread- the value for thereadrecord componentflags- the value for theflagsrecord component
-
-
Method Details
-
progress
-
with
-
withObtained
-
isRead
-
withRead
-
withFlag
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
quests
Returns the value of thequestsrecord component.- Returns:
- the value of the
questsrecord component
-
obtained
Returns the value of theobtainedrecord component.- Returns:
- the value of the
obtainedrecord component
-
read
-
flags
-