Package net.minecraftforge.network
Class ForgePacketHandler
java.lang.Object
net.minecraftforge.network.ForgePacketHandler
TODO: Gathered Payloads
During client to server initiation, on the server, the CustomPayloadEvent.GatherLoginPayloadsEvent
is fired,
which solicits all registered channels at the NetworkRegistry
for any
NetworkRegistry.LoginPayload
they wish to supply.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.apache.logging.log4j.Logger
private static final org.apache.logging.log4j.Marker
private int
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<BiConsumer<Acknowledge,
CustomPayloadEvent.Context>> private Set<ResourceLocation>
private Map<ResourceLocation,
ForgeRegistry.Snapshot> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
expectAck
(BiConsumer<Acknowledge, CustomPayloadEvent.Context> consumer) (package private) void
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
private boolean
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
MARKER
private static final org.apache.logging.log4j.Marker MARKER -
registriesToReceive
-
registrySnapshots
-
nextAckId
private int nextAckId -
pendingAcknowledgments
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<BiConsumer<Acknowledge,CustomPayloadEvent.Context>> pendingAcknowledgments
-
-
Constructor Details
-
ForgePacketHandler
ForgePacketHandler(Connection connection)
-
-
Method Details
-
expectAck
-
handleLoginWrapper
-
handleClientAck
-
handleModVersions
-
handleChannelVersions
-
handleModMismatchData
-
handleRegistryList
-
handleRegistryData
-
handleRegistryLoading
-
handleConfigSync
-