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.ResourceLocation, PlayerQuests.Progress> quests, List<net.minecraft.resources.ResourceLocation> obtained, Map<net.minecraft.resources.ResourceLocation, 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.ResourceLocation> obtained()Returns the value of theobtainedrecord component.progress(net.minecraft.resources.ResourceLocation quest) Map<net.minecraft.resources.ResourceLocation, 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.ResourceLocation quest, PlayerQuests.Progress progress) withObtained(Set<net.minecraft.resources.ResourceLocation> items)
-
Field Details
-
EMPTY
-
CODEC
-
-
Constructor Details
-
PlayerQuests
public PlayerQuests(Map<net.minecraft.resources.ResourceLocation, PlayerQuests.Progress> quests, List<net.minecraft.resources.ResourceLocation> obtained, Map<net.minecraft.resources.ResourceLocation, 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
public PlayerQuests with(net.minecraft.resources.ResourceLocation quest, PlayerQuests.Progress progress) -
withObtained
-
isRead
-
withRead
-
withFlag
-
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. 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
Returns the value of thereadrecord component.- Returns:
- the value of the
readrecord component
-
flags
Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-