Record Class ServerQuest
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.quest.ServerQuest
public record ServerQuest(net.minecraft.resources.ResourceLocation id, @Nullable net.minecraft.resources.ResourceLocation book, List<ServerObjective> requires, List<ServerObjective> objectives, boolean inOrder, @Nullable com.google.gson.JsonObject rewards, com.google.gson.JsonObject json)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServerQuest(net.minecraft.resources.ResourceLocation id, @Nullable net.minecraft.resources.ResourceLocation book, List<ServerObjective> requires, List<ServerObjective> objectives, boolean inOrder, @Nullable com.google.gson.JsonObject rewards, com.google.gson.JsonObject json) Creates an instance of aServerQuestrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.resources.ResourceLocationbook()Returns the value of thebookrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceLocationid()Returns the value of theidrecord component.booleaninOrder()Returns the value of theinOrderrecord component.com.google.gson.JsonObjectjson()Returns the value of thejsonrecord component.Returns the value of theobjectivesrecord component.static ServerQuestread(net.minecraft.resources.ResourceLocation id, com.google.gson.JsonObject json) requires()Returns the value of therequiresrecord component.@Nullable com.google.gson.JsonObjectrewards()Returns the value of therewardsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
MOST
public static final int MOST- See Also:
-
-
Constructor Details
-
ServerQuest
public ServerQuest(net.minecraft.resources.ResourceLocation id, @Nullable @Nullable net.minecraft.resources.ResourceLocation book, List<ServerObjective> requires, List<ServerObjective> objectives, boolean inOrder, @Nullable @Nullable com.google.gson.JsonObject rewards, com.google.gson.JsonObject json) Creates an instance of aServerQuestrecord class.- Parameters:
id- the value for theidrecord componentbook- the value for thebookrecord componentrequires- the value for therequiresrecord componentobjectives- the value for theobjectivesrecord componentinOrder- the value for theinOrderrecord componentrewards- the value for therewardsrecord componentjson- the value for thejsonrecord component
-
-
Method Details
-
read
public static ServerQuest read(net.minecraft.resources.ResourceLocation id, com.google.gson.JsonObject json) -
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 '=='. -
id
public net.minecraft.resources.ResourceLocation id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
book
@Nullable public @Nullable net.minecraft.resources.ResourceLocation book()Returns the value of thebookrecord component.- Returns:
- the value of the
bookrecord component
-
requires
Returns the value of therequiresrecord component.- Returns:
- the value of the
requiresrecord component
-
objectives
Returns the value of theobjectivesrecord component.- Returns:
- the value of the
objectivesrecord component
-
inOrder
public boolean inOrder()Returns the value of theinOrderrecord component.- Returns:
- the value of the
inOrderrecord component
-
rewards
@Nullable public @Nullable com.google.gson.JsonObject rewards()Returns the value of therewardsrecord component.- Returns:
- the value of the
rewardsrecord component
-
json
public com.google.gson.JsonObject json()Returns the value of thejsonrecord component.- Returns:
- the value of the
jsonrecord component
-