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
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidLog a new info message for this mod.static voidLog a new message of the given level for this mod.protected com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack>protected IClientProxyprotected ICommonProxyprotected ModCompatLoaderprotected booleanbooleanisLoaded()voidonConfigsRegister(ConfigHandler configHandler) Called when the configs should be registered.protected voidonServerStarting(net.minecraftforge.event.server.ServerStartingEvent event) Register the things that are related to when the server is starting.protected voidsetup(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, setVersionInfoMethods 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, onRegisterCommands, 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:
constructClientProxyin classModBase<CyclopsCore>
-
constructCommonProxy
- Specified by:
constructCommonProxyin classModBase<CyclopsCore>
-
constructModCompatLoader
- Overrides:
constructModCompatLoaderin classModBase<CyclopsCore>
-
constructBaseCommand
protected com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> constructBaseCommand()- Overrides:
constructBaseCommandin classModBase<CyclopsCore>
-
setup
protected void setup(net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent event) Description copied from class:ModBaseCalled on the Forge setup lifecycle event.- Overrides:
setupin classModBase<CyclopsCore>- Parameters:
event- The setup event.
-
onServerStarting
protected void onServerStarting(net.minecraftforge.event.server.ServerStartingEvent event) Description copied from class:ModBaseRegister the things that are related to when the server is starting.- Overrides:
onServerStartingin classModBase<CyclopsCore>- Parameters:
event- The Forge server starting event.
-
hasDefaultCreativeModeTab
protected boolean hasDefaultCreativeModeTab()- Overrides:
hasDefaultCreativeModeTabin 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:ModBaseCalled when the configs should be registered.- Overrides:
onConfigsRegisterin classModBase<CyclopsCore>- Parameters:
configHandler- The config handler to register to.
-
isLoaded
public boolean isLoaded()- Returns:
- If this mod has been fully loaded. (The
FMLLoadCompleteEventhas 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.
-