Package net.fabricmc.fabric.api.networking.v1

The Networking API, version 1.

For login stage networking see net.fabricmc.fabric.api.networking.v1.ServerLoginNetworking. For play stage networking see net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking.

For events related to the connection to a client see net.fabricmc.fabric.api.networking.v1.ServerLoginConnectionEvents for login stage or net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents for play stage.

For events related to the ability of a client to receive packets on a channel of a specific name see net.fabricmc.fabric.api.networking.v1.S2CPlayChannelEvents.

Types

EntityTrackingEvents
Link copied to clipboard
public final class EntityTrackingEvents
Events related to a tracking entities within a player's view distance.
FutureListeners
Link copied to clipboard
public final class FutureListeners
Utilities for working with netty's future listeners.
PacketByteBufs
Link copied to clipboard
public final class PacketByteBufs
Helper methods for working with and creating PacketByteBufs.
PacketSender
Link copied to clipboard
public interface PacketSender
Represents something that supports sending packets to channels.
PlayerLookup
Link copied to clipboard
public final class PlayerLookup
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.
S2CPlayChannelEvents
Link copied to clipboard
public final class S2CPlayChannelEvents
Offers access to events related to the indication of a connected client's ability to receive packets in certain channels.
ServerLoginConnectionEvents
Link copied to clipboard
public final class ServerLoginConnectionEvents
Offers access to events related to the connection to a client on a logical server while a client is logging in.
ServerLoginNetworking
Link copied to clipboard
public final class ServerLoginNetworking
Offers access to login stage server-side networking functionalities.
ServerPlayConnectionEvents
Link copied to clipboard
public final class ServerPlayConnectionEvents
Offers access to events related to the connection to a client on a logical server while a client is in game.
ServerPlayNetworking
Link copied to clipboard
public final class ServerPlayNetworking
Offers access to play stage server-side networking functionalities.