inject
🟡 Updated this yearPreview

🔍 Analysis
- 👍 0.1% endorsement rate
- 🏆 #89 of 99 fabric mods in this game by downloads
📋 About This Mod
# inject Inject is a simple server-side library to allow developers to inject into Netty easier. ## Example This uses the `HttpInjector` class to respond to HTTP requests to the Minecraft server. ```java class MyEpicHttpInjector extends HttpInjector { @Override public HttpByteBuf intercept(ChannelHandlerContext ctx, HttpRequest request) { HttpByteBuf buf = HttpByteBuf.httpBuf(ctx); buf.writeStatusLine("1.1", 200, "OK"); buf.writeText("Hello, from Minecraft!"); return buf; } } ``` ## Registration For Fabric, use the `InjectFabric` class: ```java public class MyMod implements ModInitializer { @Override public void onInitialize() { InjectFabric.INSTANCE.registerInjector(new MyEpicHttpInjector()); } } ``` For Spigot, Paper and derivatives, use the `InjectSpigot` class: ```java public class MyPlugin extends JavaPlugin { @Override public void onEnable() { InjectSpigot.INSTANCE.registerInjector(new MyEpicHttpInjector()); } } ``` This will register an HTTP injector which will respond with `Hello, from Minecraft!` to any HTTP request to the Minecraft port. ```bash $ curl http://localhost:25565 Hello, from Minecraft! ``` ## Supported web servers - Spring Boot: `spring` module - Javalin: `javalin` module - Ktor: `ktor` module - Jetty: `jetty` module - manual request handling: `http` module Examples can be found in the `examples` module. ## Usage Add the andante repo to gradle: ```kt repositories { maven("https://maven.mcbrawls.net/releases/") } ``` Add the dependency: ```kt dependencies { implementation("net.mcbrawls.inject:api:VERSION") // For HTTP-related things: implementation("net.mcbrawls.inject:http:VERSION") // Fabric: include(modImplementation("net.mcbrawls.inject:fabric:VERSION")!!) // Spigot/Paper: implementation("net.mcbrawls.inject:spigot:VERSION") // You can find the other modules for Spring, Ktor, etc. on the Github repo. } ``` Replace `VERSION` with the latest version from the releases tab.
# inject Inject is a simple server-side library to allow developers to inject into Netty easier.
## Example This uses the `HttpInjector` class to respond to HTTP requests to the Minecraft server.
```java class MyEpicHttpInjector extends HttpInjector { @Override public HttpByteBuf intercept(ChannelHandlerContext ctx, HttpRequest request) { HttpByteBuf buf = HttpByteBuf.httpBuf(ctx); buf.writeStatusLine("1. 1", 200, "OK"); buf.writeText("Hello, from Minecraft!"); return buf; } } ```
## Registration For Fabric, use the `InjectFabric` class: ```java public class MyMod implements ModInitializer { @Override public void onInitialize() { InjectFabric. INSTANCE.registerInjector(new MyEpicHttpInjector()); } } ```
For Spigot, Paper and derivatives, use the `InjectSpigot` class: ```java public class MyPlugin extends JavaPlugin { @Override public void onEnable() { InjectSpigot. INSTANCE.registerInjector(new MyEpicHttpInjector()); } } ```
This will register an HTTP injector which will respond with `Hello, from Minecraft!` to any HTTP request to the Minecraft port.
```bash $ curl http://localhost:25565 Hello, from Minecraft! ```
## Supported web servers - Spring Boot: `spring` module - Javalin: `javalin` module - Ktor: `ktor` module - Jetty: `jetty` module - manual request handling: `http` module
Examples can be found in the `examples` module.
## Usage Add the andante repo to gradle: ```kt repositories { maven("https://maven.mcbrawls.net/releases/") } ```
Add the dependency: ```kt dependencies { implementation("net.mcbrawls.inject:api:VERSION") // For HTTP-related things: implementation("net.mcbrawls.inject:http:VERSION")
// Fabric: include(modImplementation("net.mcbrawls.inject:fabric:VERSION")!!) // Spigot/Paper: implementation("net.mcbrawls.inject:spigot:VERSION")
// You can find the other modules for Spring, Ktor, etc. on the Github repo. } ```
Replace `VERSION` with the latest version from the releases tab.
📊 Mod Details
- Game
- Minecraft Plugins
- Author
- dvits
- Version
- 3.2.0
- Downloads
- 1,628
- Endorsements
- 2
- Category
- fabric
- Created
- 11/6/2024
- Updated
- 6/17/2026
- Game Versions
- 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4
- Tags
- library, technology
🔧 How to Install Minecraft Plugins Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Plugins →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Plugins commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Plugins versions does inject support?
The author lists 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5. Other versions may work but are untested by the author.
What is the latest version of inject?
Version 3.2.0, published 2026-06-17 with 1,628 downloads recorded at the source.
Keep browsing — more Minecraft Plugins mods await