Package net.neoforged.neoforge.network
Class NetworkEvent.GatherLoginPayloadsEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.network.NetworkEvent.GatherLoginPayloadsEvent
- Enclosing class:
NetworkEvent
public static class NetworkEvent.GatherLoginPayloadsEvent
extends net.neoforged.bus.api.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.bus.api.Event
net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.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.neoforged.bus.api.Event
getResult, hasResult, 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()
-