Class CyclopsCore

All Implemented Interfaces:
IModVersion

public class CyclopsCore extends ModBaseVersionable<CyclopsCore>
The main mod class of CyclopsCore.
  • Field Details

    • _instance

      public static CyclopsCore _instance
      The unique instance of this mod.
  • Constructor Details

    • CyclopsCore

      public CyclopsCore()
  • Method Details

    • constructClientProxy

      protected IClientProxy constructClientProxy()
      Specified by:
      constructClientProxy in class ModBase<CyclopsCore>
    • constructCommonProxy

      protected ICommonProxy constructCommonProxy()
      Specified by:
      constructCommonProxy in class ModBase<CyclopsCore>
    • constructModCompatLoader

      protected ModCompatLoader constructModCompatLoader()
      Overrides:
      constructModCompatLoader in class ModBase<CyclopsCore>
    • constructBaseCommand

      protected com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> constructBaseCommand()
      Overrides:
      constructBaseCommand in class ModBase<CyclopsCore>
    • setup

      protected void setup(net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent event)
      Description copied from class: ModBase
      Called on the Forge setup lifecycle event.
      Overrides:
      setup in class ModBase<CyclopsCore>
      Parameters:
      event - The setup event.
    • onServerStarting

      protected void onServerStarting(net.minecraftforge.event.server.ServerStartingEvent event)
      Description copied from class: ModBase
      Register the things that are related to when the server is starting.
      Overrides:
      onServerStarting in class ModBase<CyclopsCore>
      Parameters:
      event - The Forge server starting event.
    • hasDefaultCreativeModeTab

      protected boolean hasDefaultCreativeModeTab()
      Overrides:
      hasDefaultCreativeModeTab in class ModBase<CyclopsCore>
      Returns:
      If a default creative tab should be constructed. If so, make sure to override ModBase.constructDefaultCreativeModeTab(CreativeModeTab.Builder).
    • onConfigsRegister

      public void onConfigsRegister(ConfigHandler configHandler)
      Description copied from class: ModBase
      Called when the configs should be registered.
      Overrides:
      onConfigsRegister in class ModBase<CyclopsCore>
      Parameters:
      configHandler - The config handler to register to.
    • isLoaded

      public boolean isLoaded()
      Returns:
      If this mod has been fully loaded. (The FMLLoadCompleteEvent has been called)
    • clog

      public static void clog(String message)
      Log a new info message for this mod.
      Parameters:
      message - The message to show.
    • clog

      public static void clog(org.apache.logging.log4j.Level level, String message)
      Log a new message of the given level for this mod.
      Parameters:
      level - The level in which the message must be shown.
      message - The message to show.