Package org.cyclops.cyclopscore
Class CyclopsCore
- All Implemented Interfaces:
IModVersion
The main mod class of CyclopsCore.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cyclops.cyclopscore.init.ModBase
ModBase.EnumReferenceKey<T>
-
Field Summary
Fields inherited from class org.cyclops.cyclopscore.init.ModBase
REFKEY_CRASH_ON_INVALID_RECIPE, REFKEY_CRASH_ON_MODCOMPAT_CRASH, REFKEY_INFOBOOK_REWARDS, REFKEY_RETROGEN, REFKEY_TEXTURE_PATH_GUI, REFKEY_TEXTURE_PATH_MODELS, REFKEY_TEXTURE_PATH_SKINS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Log a new info message for this mod.static void
Log a new message of the given level for this mod.protected com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack>
protected IClientProxy
protected ICommonProxy
protected ModCompatLoader
protected boolean
boolean
isLoaded()
void
onConfigsRegister
(ConfigHandler configHandler) Called when the configs should be registered.protected void
onServerStarting
(net.minecraftforge.event.server.ServerStartingEvent event) Register the things that are related to when the server is starting.protected void
setup
(net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent event) Called on the Forge setup lifecycle event.Methods inherited from class org.cyclops.cyclopscore.init.ModBaseVersionable
getInfo, getUpdateUrl, getVersion, isVersionInfo, needsUpdate, setVersionInfo
Methods inherited from class org.cyclops.cyclopscore.init.ModBase
constructCapabilityConstructorRegistry, constructConfigHandler, constructDefaultCreativeModeTab, constructDefaultCreativeModeTabConfig, constructIMCHandler, constructLoggerHelper, constructPacketHandler, constructRegistryManager, equals, get, getContainer, getModName, getProxy, getReferenceValue, hashCode, loadModCompats, log, log, onRegisterKeyMappings, onServerAboutToStart, onServerStarted, onServerStopping, putGenericReference, registerDefaultCreativeTabEntry, registerWorldStorage, setupClient, toString
-
Field Details
-
_instance
The unique instance of this mod.
-
-
Constructor Details
-
CyclopsCore
public CyclopsCore()
-
-
Method Details
-
constructClientProxy
- Specified by:
constructClientProxy
in classModBase<CyclopsCore>
-
constructCommonProxy
- Specified by:
constructCommonProxy
in classModBase<CyclopsCore>
-
constructModCompatLoader
- Overrides:
constructModCompatLoader
in classModBase<CyclopsCore>
-
constructBaseCommand
protected com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> constructBaseCommand()- Overrides:
constructBaseCommand
in classModBase<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 classModBase<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 classModBase<CyclopsCore>
- Parameters:
event
- The Forge server starting event.
-
hasDefaultCreativeModeTab
protected boolean hasDefaultCreativeModeTab()- Overrides:
hasDefaultCreativeModeTab
in classModBase<CyclopsCore>
- Returns:
- If a default creative tab should be constructed.
If so, make sure to override
ModBase.constructDefaultCreativeModeTab(CreativeModeTab.Builder)
.
-
onConfigsRegister
Description copied from class:ModBase
Called when the configs should be registered.- Overrides:
onConfigsRegister
in classModBase<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
Log a new info message for this mod.- Parameters:
message
- The message to show.
-
clog
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.
-