Package net.minecraftforge.network
Class NetworkEvent.GatherLoginPayloadsEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.network.NetworkEvent.GatherLoginPayloadsEvent
- Enclosing class:
- NetworkEvent
public static class NetworkEvent.GatherLoginPayloadsEvent
extends net.minecraftforge.eventbus.api.Event
-
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
Modifier and TypeFieldDescriptionprivate final List<NetworkRegistry.LoginPayload>
private final boolean
-
Constructor Summary
ConstructorDescriptionGatherLoginPayloadsEvent
(List<NetworkRegistry.LoginPayload> loginPayloadList, boolean isLocal) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(FriendlyByteBuf buffer, ResourceLocation channelName, String context) void
add
(FriendlyByteBuf buffer, ResourceLocation channelName, String context, boolean needsResponse) boolean
isLocal()
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
collected
-
isLocal
private final boolean isLocal
-
-
Constructor Details
-
GatherLoginPayloadsEvent
public GatherLoginPayloadsEvent(List<NetworkRegistry.LoginPayload> loginPayloadList, boolean isLocal)
-
-
Method Details
-
add
-
add
public void add(FriendlyByteBuf buffer, ResourceLocation channelName, String context, boolean needsResponse) -
isLocal
public boolean isLocal()
-