Class GuideObjectives

java.lang.Object
net.ixdarklord.folios.api.client.GuideObjectives

public final class GuideObjectives extends Object
Values a mod reports for books to follow: an objective {"source": "mymod:mana", "goal": 100} is as far along as the source's value is towards its goal. The value is asked whenever the objective is drawn or checked, so keep it cheap (read it from what the client already has).
GuideObjectives.register(MyMod.id("mana"), player -> ManaClient.current());
GuideObjectives.register(MyMod.id("spells_known"), player -> ClientSpells.known().size());
  • Method Details