-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package io.github.gaming32.worldhost; | ||
|
||
import com.mojang.logging.LogUtils; | ||
import org.slf4j.Logger; | ||
|
||
//#if FABRIC | ||
import net.fabricmc.api.ClientModInitializer; | ||
//#endif | ||
|
||
//#if FORGE | ||
//$$ import net.minecraftforge.api.distmarker.Dist; | ||
//$$ import net.minecraftforge.eventbus.api.SubscribeEvent; | ||
//$$ import net.minecraftforge.fml.common.Mod; | ||
//$$ import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; | ||
//#endif | ||
|
||
//#if FORGE | ||
//$$ @Mod(WorldHost.MOD_ID) | ||
//#endif | ||
public class WorldHost | ||
//#if FABRIC | ||
implements ClientModInitializer | ||
//#endif | ||
{ | ||
public static final String MOD_ID = "world-host"; | ||
|
||
public static final Logger LOGGER = LogUtils.getLogger(); | ||
|
||
//#if FABRIC | ||
@Override | ||
public void onInitializeClient() { | ||
init(); | ||
} | ||
//#endif | ||
|
||
private static void init() { | ||
LOGGER.info("World Host is initializing..."); | ||
} | ||
|
||
//#if FORGE | ||
//$$ @Mod.EventBusSubscriber(modid = MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT) | ||
//$$ public static class ClientModEvents { | ||
//$$ @SubscribeEvent | ||
//$$ public static void onClientSetup(FMLClientSetupEvent event) { | ||
//$$ init(); | ||
//$$ } | ||
//$$ } | ||
//#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.19.4-fabric | ||
1.19.4-fabric |