类 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
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
connection
-
-
构造器详细资料
-
ConnectionStartEvent
-
-
方法详细资料
-
getConnection
-
isClient
public boolean isClient()
-