Class ClientQuests

java.lang.Object
net.ixdarklord.folios.internal.client.ClientQuests

public final class ClientQuests extends Object
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 Classes
    Modifier and Type
    Class
    Description
    static final record 
    A server quest as a book shows it.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    claim(net.minecraft.resources.Identifier id)
    Asks the server for a quest's reward.
    static void
    Forgets what a server sent, as the client leaves it.
    static @Nullable ClientQuests.Quest
    get(net.minecraft.resources.Identifier id)
     
    progress(net.minecraft.resources.Identifier id)
    What the server found of the player's progress with a quest.
    static void
    The quests the server sent: kept, and books laid out again so their quest pages show them.
    static @Nullable QuestRewards
    rewards(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 void
    What the server found of the player's quests changed: books are laid out again if any opened or was done.
    static void
    tick(net.minecraft.client.Minecraft minecraft)
    Every client tick: tells the server which entry is open, when that has changed.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • receive

      public static void receive(FoliosPayloads.Quests payload)
      The quests the server sent: kept, and books laid out again so their quest pages show them.
    • get

      public static @Nullable ClientQuests.Quest get(net.minecraft.resources.Identifier id)
    • rewards

      public static @Nullable QuestRewards rewards(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.
    • progress

      public static PlayerQuests.Progress progress(net.minecraft.resources.Identifier id)
      What the server found of the player's progress with a quest.
    • synced

      public static void synced(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.
    • 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.