Class FoliosObjectives
java.lang.Object
net.ixdarklord.folios.api.client.FoliosObjectives
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).
FoliosObjectives.register(MyMod.id("mana"), player -> ManaClient.current());
FoliosObjectives.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 FoliosObjectives.Sourceget(net.minecraft.resources.Identifier id) static voidregister(net.minecraft.resources.Identifier id, FoliosObjectives.Source source)
-
Method Details
-
register
-
get
-