NiteaConsent
package cc.nitea;
public final class NiteaConsent
Mods don't need this class, and shouldn't use it to grant consent on the player's behalf. It's used by Nitea's own screens, and is public for launchers and modpack tools that want to show their own prompt.
State
public enum State { UNDECIDED, GRANTED, DENIED }
Methods
state()
static State
The current choice.
grant()
static void
Allows reporting for every mod using Nitea. Waiting and future events of every mod are sent.
deny()
static void
Refuses reporting for every mod. Drops waiting events and deletes the installation ID.
shouldAsk()
static boolean
true while the state is UNDECIDED.
mods()
static Set<String>
The IDs of every mod using Nitea in this game.
onChange(Runnable listener)
static void
Runs listener whenever the choice changes, from any copy of Nitea.
useGameDir(Path gameDir)
static void
Sets where config/nitea/ is, when calling this class before any mod ran Nitea.init.
markPromptAvailable()
static void
Tells Nitea that a consent prompt can be shown in this game. Used by Nitea's client screens.