类 ClientPlayerNetworkEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ClientPlayerNetworkEvent
- 直接已知子类:
ClientPlayerNetworkEvent.Clone
,ClientPlayerNetworkEvent.LoggingIn
,ClientPlayerNetworkEvent.LoggingOut
public abstract class ClientPlayerNetworkEvent
extends net.minecraftforge.eventbus.api.Event
Fired for different client connectivity events.
See the various subclasses to listen for specific events.
These events are fired on the main Forge event bus, only on the logical client.
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static class
Fired when the client player respawns, creating a new player instance to replace the old player instance.static class
Fired when the client player logs in to the server.static class
Fired when the client player logs out.从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明protected
ClientPlayerNetworkEvent
(MultiPlayerGameMode multiPlayerGameMode, LocalPlayer player, Connection connection) -
方法概要
修饰符和类型方法说明返回 the network connection for the player。返回 the multiplayer game mode controller for the player。返回 the player instance。从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
multiPlayerGameMode
-
player
-
connection
-
-
构造器详细资料
-
ClientPlayerNetworkEvent
@Internal protected ClientPlayerNetworkEvent(MultiPlayerGameMode multiPlayerGameMode, LocalPlayer player, Connection connection)
-
-
方法详细资料
-
getMultiPlayerGameMode
返回 the multiplayer game mode controller for the player。- 返回:
- the multiplayer game mode controller for the player
-
getPlayer
返回 the player instance。- 返回:
- the player instance
-
getConnection
返回 the network connection for the player。- 返回:
- the network connection for the player
-