Interface SessionInjector
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Host hook that swaps the running game's authenticated session to a freshly logged-in account. The
library hands the host a transport-neutral
SessionData; the host translates it into
whatever session type its platform uses (for example net.minecraft.client.User) and
installs it.
Called off the main thread by the login service; implementations that touch render-thread state
must marshal onto it via MainThreadExecutor.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidinject(SessionData session) Installssessionas the client's active identity.
-
Method Details
-
inject
Installssessionas the client's active identity.- Parameters:
session- the resolved account to make current- Since:
- 0.1.0
-