CurseForge · Minecraft mod
Net
a network library
Quick answer
Which Net release should I use?
net-26.x-2.0.0-26041500-Neo.jar targets 26.1.1, 26.1.2 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is Net required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does net-26.x-2.0.0-26041500-Neo.jar need?
net-26.x-2.0.0-26041500-Neo.jar. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add Net without breaking your instance.
Built for net-26.x-2.0.0-26041500-Neo.jar. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use net-26.x-2.0.0-26041500-Neo.jar. It targets 26.1.1, 26.1.2 with NeoForge; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside net-26.x-2.0.0-26041500-Neo.jar. It opens that exact file at the source.
About this project
What does Net add?
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
}
}
Project description from CurseForge.
Pick your setup
Net by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.1.1
1 loader build1.21.1
2 loader builds1.21
2 loader buildsCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Net versions and loaders
net-26.x-2.0.0-26041500-Neo.jar
16 Apr 2026
net-26.x-2.0.0-26040700-Neo.jar
7 Apr 2026
net-1.21.1-24.10.0800.jar
7 Oct 2024
net-1.21-24.08.0804.jar
27 Aug 2024
net-1.21-24.08.1203-neo.jar
27 Aug 2024
Looking for an older file? The official CurseForge project page is in Resources.