Class PlayerNegotiationEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.player.PlayerNegotiationEvent
public class PlayerNegotiationEvent
extends net.minecraftforge.eventbus.api.Event
This event is fired on the server when a connection has started the Forge handshake,
Forge will wait for all enqueued work to be completed before proceeding further with the login process.
This event can be used to delay the player login until any necessary work such as preloading user data has completed.
This event is fired on the
This event can be used to delay the player login until any necessary work such as preloading user data has completed.
This event is fired on the
MinecraftForge.EVENT_BUS
.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Connection
private final com.mojang.authlib.GameProfile
-
Constructor Summary
ConstructorDescriptionPlayerNegotiationEvent
(Connection connection, com.mojang.authlib.GameProfile profile, List<Future<Void>> futures) -
Method Summary
Modifier and TypeMethodDescriptionvoid
enqueueWork
(Runnable runnable) Enqueue work to be completed asynchronously before the login proceeds.void
enqueueWork
(Future<Void> future) Enqueue work to be completed asynchronously before the login proceeds.com.mojang.authlib.GameProfile
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
connection
-
profile
private final com.mojang.authlib.GameProfile profile -
futures
-
-
Constructor Details
-
PlayerNegotiationEvent
public PlayerNegotiationEvent(Connection connection, com.mojang.authlib.GameProfile profile, List<Future<Void>> futures)
-
-
Method Details
-
enqueueWork
Enqueue work to be completed asynchronously before the login proceeds. -
enqueueWork
Enqueue work to be completed asynchronously before the login proceeds. -
getConnection
-
getProfile
public com.mojang.authlib.GameProfile getProfile()
-