Class GuideObjectives
java.lang.Object
net.ixdarklord.folios.api.client.GuideObjectives
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());
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA value to follow, for the local player. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable GuideObjectives.Sourceget(net.minecraft.resources.Identifier id) static voidregister(net.minecraft.resources.Identifier id, GuideObjectives.Source source)
-
Method Details
-
register
-
get
-