Package net.fabricmc.fabric.api.networking.v1
package net.fabricmc.fabric.api.networking.v1
The Networking API, version 1.
For login stage networking see ServerLoginNetworking
.
For play stage networking see ServerPlayNetworking
.
For events related to the connection to a client see ServerLoginConnectionEvents
for login stage
or ServerPlayConnectionEvents
for play stage.
For events related to the ability of a client to receive packets on a channel of a specific name see S2CPlayChannelEvents
.
-
ClassDescriptionEvents related to a tracking entities within a player's view distance.Utilities for working with netty's future listeners.Helper methods for working with and creating
PacketByteBuf
s.Represents something that supports sending packets to channels.For example, a block entity may use the methods in this class to send a packet to all clients which can see the block entity in order notify clients about a change.Offers access to events related to the indication of a connected client's ability to receive packets in certain channels.Offers access to events related to the connection to a client on a logical server while a client is logging in.Offers access to login stage server-side networking functionalities.Allows blocking client log-in until all futures passed intoServerLoginNetworking.LoginSynchronizer.waitFor(Future)
are completed.Offers access to events related to the connection to a client on a logical server while a client is in game.Offers access to play stage server-side networking functionalities.