Class ClientQuests
java.lang.Object
net.ixdarklord.folios.internal.client.ClientQuests
The server's quests on the client: what the server sent of each (books show them as they are written), what it found
of the player's progress, and claiming their rewards. Also tells the server which entry is open, for its reading.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA server quest as a book shows it. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclaim(net.minecraft.resources.Identifier id) Asks the server for a quest's reward.static voidforget()Forgets what a server sent, as the client leaves it.static @Nullable ClientQuests.Questget(net.minecraft.resources.Identifier id) static PlayerQuests.Progressprogress(net.minecraft.resources.Identifier id) What the server found of the player's progress with a quest.static voidreceive(FoliosPayloads.Quests payload) The quests the server sent: kept, and books laid out again so their quest pages show them.static @Nullable QuestRewardsrewards(net.minecraft.resources.Identifier id) A quest's rewards, read with the client's world; null where it has none, or before the world is there.static voidsynced(PlayerQuests old, PlayerQuests now) What the server found of the player's quests changed: books are laid out again if any opened or was done.static voidtick(net.minecraft.client.Minecraft minecraft) Every client tick: tells the server which entry is open, when that has changed.
-
Method Details
-
receive
The quests the server sent: kept, and books laid out again so their quest pages show them. -
get
-
rewards
A quest's rewards, read with the client's world; null where it has none, or before the world is there. -
progress
What the server found of the player's progress with a quest. -
synced
What the server found of the player's quests changed: books are laid out again if any opened or was done. -
claim
public static void claim(net.minecraft.resources.Identifier id) Asks the server for a quest's reward. -
tick
public static void tick(net.minecraft.client.Minecraft minecraft) Every client tick: tells the server which entry is open, when that has changed. -
forget
public static void forget()Forgets what a server sent, as the client leaves it.
-