类 PlayerNegotiationEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.player.PlayerNegotiationEvent
public class PlayerNegotiationEvent
extends net.neoforged.bus.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
NeoForge.EVENT_BUS
.-
字段概要
字段 -
构造器概要
构造器构造器说明PlayerNegotiationEvent
(Connection connection, com.mojang.authlib.GameProfile profile, List<Future<Void>> futures) -
方法概要
修饰符和类型方法说明void
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
-
字段详细资料
-
connection
-
profile
private final com.mojang.authlib.GameProfile profile -
futures
-
-
构造器详细资料
-
PlayerNegotiationEvent
public PlayerNegotiationEvent(Connection connection, com.mojang.authlib.GameProfile profile, List<Future<Void>> futures)
-
-
方法详细资料
-
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()
-