类 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 MinecraftForge.EVENT_BUS.
  • 嵌套类概要

    从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private final Connection
     
    private final List<Future<Void>>
     
    private final com.mojang.authlib.GameProfile
     
  • 构造器概要

    构造器
    构造器
    说明
    PlayerNegotiationEvent(Connection connection, com.mojang.authlib.GameProfile profile, List<Future<Void>> futures)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    Enqueue work to be completed asynchronously before the login proceeds.
    void
    Enqueue work to be completed asynchronously before the login proceeds.
     
    com.mojang.authlib.GameProfile
     

    从类继承的方法 net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • connection

      private final Connection connection
    • profile

      private final com.mojang.authlib.GameProfile profile
    • futures

      private final List<Future<Void>> futures
  • 构造器详细资料

    • PlayerNegotiationEvent

      public PlayerNegotiationEvent(Connection connection, com.mojang.authlib.GameProfile profile, List<Future<Void>> futures)
  • 方法详细资料

    • enqueueWork

      public void enqueueWork(Runnable runnable)
      Enqueue work to be completed asynchronously before the login proceeds.
    • enqueueWork

      public void enqueueWork(Future<Void> future)
      Enqueue work to be completed asynchronously before the login proceeds.
    • getConnection

      public Connection getConnection()
    • getProfile

      public com.mojang.authlib.GameProfile getProfile()