// import statements... @Mod(HifiMC.MOD_ID) public class HifiMC { // ... public HifiMC() { // Register the doClientStuff method for modloading FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff); // ... } private void doClientStuff(final FMLClientSetupEvent event) { String webhostname = "localhost"; int webport = 7777; // TODO: Initialize a webserver } // ... }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter