类 NetworkEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.network.NetworkEvent
- 直接已知子类:
NetworkEvent.ChannelRegistrationChangeEvent
,NetworkEvent.ClientCustomPayloadEvent
,NetworkEvent.LoginPayloadEvent
,NetworkEvent.ServerCustomPayloadEvent
public class NetworkEvent
extends net.minecraftforge.eventbus.api.Event
-
嵌套类概要
嵌套类修饰符和类型类说明static class
Fired when the channel registration (see minecraft custom channel documentation) changes.static class
static class
static class
Context forNetworkEvent
static class
static class
static class
Dispatcher for sending packets in response to a received packet.static enum
static class
static class
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段修饰符和类型字段说明private final int
private final FriendlyByteBuf
private final Supplier<NetworkEvent.Context>
-
构造器概要
构造器限定符构造器说明NetworkEvent
(Supplier<NetworkEvent.Context> source) private
NetworkEvent
(FriendlyByteBuf payload, Supplier<NetworkEvent.Context> source, int loginIndex) private
NetworkEvent
(ICustomPacket<?> payload, Supplier<NetworkEvent.Context> source) -
方法概要
修饰符和类型方法说明int
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
payload
-
source
-
loginIndex
private final int loginIndex
-
-
构造器详细资料
-
NetworkEvent
-
NetworkEvent
private NetworkEvent(FriendlyByteBuf payload, Supplier<NetworkEvent.Context> source, int loginIndex) -
NetworkEvent
-
-
方法详细资料
-
getPayload
-
getSource
-
getLoginIndex
public int getLoginIndex()
-