package top.r3944realms.lib39.core.network;

import net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;
import top.r3944realms.lib39.core.network.toClient.SyncNBTLookupDataEntityS2CPacket;

/**
 * The type Fabric network handler.
 */
public class FabricNetworkHandler {

    /**
     * 注册客户端接收的数据包
     */
    public static void registerClientReceivers() {
        ClientPlayNetworking.registerGlobalReceiver(
                SyncNBTLookupDataEntityS2CPacket.TYPE,
                SyncNBTLookupDataEntityS2CPacket::receive
        );

    }
}
