net

net

Network communication library

by
145 Downloads
neoforgelibraryoptimization
Rent Server with this Mod

About this Mod

Net

Features

  • Simplifies the network communication part in development, making development easier.
  • Will provide network optimization and protection in the future.

How to use

First, insert implementation "dev.anye.mc:net:version" into the dependencies section of the build.gradle file, replacing version with the version you are actually using.
Then create network communication according to the following code

    //Create a DeferredRegister to store your NetHandle
    public static final DeferredRegister<NetHandle> EASY_NET = DeferredRegister.create(NetReg.KEY, YourMod.MOD_ID);
    //Register your NetHandle to the DeferredRegister above
    public static final DeferredHolder<NetHandle, ExampleA> ExampleA = EASY_NET.register("example_a",ExampleA::new);
    public static final DeferredHolder<NetHandle, ExampleB> ExampleB = EASY_NET.register("example_b",ExampleB::new);
    //Create a DeferredRegister registration method and call it in the Mod main class
    public static void reg(IEventBus eventBus){
        EASY_NET.register(eventBus);
    }

    Use the methods in the NetCore class to send data
    NetCore.sendToServer(NetPack.createClientPack(CompoundTag data, NetHandle));
    NetCore.sendToEntity(NetPack.createServerPack(compoundTag,NetHandle), entity);

  public class ExampleA extends NetHandle {
    @Override
    public void client(IPayloadContext context, CompoundTag dat) {
    //Process data sent from the server here
    }

    @Override
    public void server(IPayloadContext context, CompoundTag dat) {
    //Process data sent from the client here
    }
}

Available Versions

net 26.x-2.0.0-26041500-Neorelease
MC 26.1.1, 26.1.2neoforge
April 16, 2026
net 26.x-2.0.0-26040700-Neorelease
MC 26.1.1neoforge
April 7, 2026
net 1.21.1-2.0.0-25103000-Neorelease
MC 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10neoforge
October 30, 2025

How to Install net on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set neoforge Loader

In the panel under "Egg", select the neoforge loader and matching Minecraft version (26.1.2).

3

Install Mod

Open the mod browser in the dashboard and search for "net". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

neoforge

Minecraft Versions

26.1.2, 26.1.1, 1.21.10 (+9 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

net server crashes on startup – what to do?

Most common cause: wrong neoforge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1.2). You can switch loaders with one click in the panel.

Is net compatible with neoforge?

net officially supports neoforge for Minecraft 26.1.2, 26.1.1, 1.21.10. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with net – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if net consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install net with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
LicenseRef-AM-CC-0
Server-side
Required

Supported Versions

26.1.226.1.11.21.101.21.91.21.81.21.71.21.61.21.51.21.41.21.3+2 more