类 ConnectionStartEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.network.ConnectionStartEvent

public class ConnectionStartEvent extends net.minecraftforge.eventbus.api.Event
Fired when a network connection is started, either on the server when it receives the ClientIntentionPacket or on the client when the channel is first activated. This is intended to allow modders to attach things to the channel that can be used in the future. As this is a blocking event modders can also do things like load data. Need some example uses.
  • 嵌套类概要

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

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

    字段
    修饰符和类型
    字段
    说明
    private final Connection
     
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
     
    boolean
     

    从类继承的方法 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
  • 构造器详细资料

    • ConnectionStartEvent

      @Internal public ConnectionStartEvent(Connection connection)
  • 方法详细资料

    • getConnection

      public Connection getConnection()
    • isClient

      public boolean isClient()