Package net.minecraftforge.event.network
Class 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.
-
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
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
connection
-
-
Constructor Details
-
ConnectionStartEvent
-
-
Method Details
-
getConnection
-
isClient
public boolean isClient()
-