FentLib
A shared code library and tweak/fix mod.

Features
- Support for animated GIF server icons. Just drop a
server-icon.giffile in the server root directory. Size limits are configurable. HodgePodge is a soft dependency, required if you want to use larger GIFs (because of the packet size limit).
Use the /reload_iconcommand to reload the icon. Also works forserver-icon.png. - Removal of EnderCore / HodgePodge Info Button in the mod list screen.
- API to modify the
S00PacketServerInfopacket. Example:
public class ClientProxy extends CommonProxy {
@Override
public void preInit(FMLPreInitializationEvent event) {
S00PacketServerInfoModifyService.registerDeserializeHandler((response, fentlibData, serverData) -> {
if (fentlibData.has("server_to_client_payload")) {
// Yoohoo we got something back!!!!
// serverData contains stuff like server IP
}
});
}
}
public class CommonProxy {
public void preInit(FMLPreInitializationEvent event) {
if (MiscUtil.isServer()) {
S00PacketServerInfoModifyService.registerHandler((response, fentLibPresent) -> {
// fentLibPresent is just a boolean indicating whether fentlib is loaded
return "server_to_client_payload";
// You can return a String, a S00PacketServerInfoModifyService.KeyValue, or a JsonElement. If you return
// a non-null value, it will be passed back to the client
});
}
}
}
/dump_thaumonomicon <Optional Comment>command. Run it from the client, and all Thaumcraft research will be dumped as a static website. The comment will be visible under the page title, and you can indicate the pack or mods for with which the dump was done.
/warpdim[dimension ID] command. Painlessly warp to a dimension (meant for debugging). *SessionAccessTokenOverrideMixinallows overriding the session access token in dev launches via-Dfentlib.accessTokenOverride=<token>.- HTTP-on-Minecraft-port reverse proxying for local web UIs. Configure path-to-port mappings in
fentlib/http-port-routes.jsonso services like Dynmap can be reached through the server port, such as/dynmap/..., instead of separate ports.
Dependencies * UniMixins

## Building
./gradlew build.
Credits
License
LgplV3 + SNEED.
Buy me a coffee
- ko-fi.com
- Monero:
893tQ56jWt7czBsqAGPq8J5BDnYVCg2tvKpvwTcMY1LS79iDabopdxoUzNLEZtRTH4ewAcKLJ4DM4V41fvrJGHgeKArxwmJ





