Package org.cyclops.cyclopscore
Class CyclopsCore
java.lang.Object
org.cyclops.cyclopscore.helper.ModBaseCommon<CyclopsCore>
- All Implemented Interfaces:
org.cyclops.cyclopscore.init.IModBase
,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> constructBaseCommand
(net.minecraft.commands.Commands.CommandSelection selection, net.minecraft.commands.CommandBuildContext context) protected IClientProxy
protected ICommonProxy
protected org.cyclops.cyclopscore.modcompat.ModCompatLoader
protected boolean
boolean
isLoaded()
void
onConfigsRegister
(org.cyclops.cyclopscore.config.ConfigHandlerCommon configHandler) Called when the configs should be registered.protected void
onServerStarting
(net.neoforged.neoforge.event.server.ServerStartingEvent event) Register the things that are related to when the server is starting.protected void
setup
(net.neoforged.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, constructIMCHandler, constructLoggerHelper, constructPacketHandler, equals, get, getCapabilityConstructorRegistry, getConfigHandler, getContainer, getGenericReference, getImcHandler, getKeyRegistry, getLoggerHelper, getModEventBus, getModHelpers, getModId, getModName, getMods, getPacketHandler, getPacketHandlerCommon, getProxy, getReferenceValue, getWorldStorages, hashCode, loadModCompats, log, log, onConfigsRegister, onRegisterCommands, onRegisterKeyMappings, onServerAboutToStart, onServerStarted, onServerStopping, putGenericReference, registerWorldStorage, setupClient, toString
Methods inherited from class org.cyclops.cyclopscore.helper.ModBaseCommon
constructDefaultCreativeModeTab, constructDefaultCreativeModeTabConfig, constructRegistryManager, getCommon, getCommonMods, getDefaultCreativeTab, getDefaultCreativeTabEntries, getModCompatLoader, getRegistryManager, registerDefaultCreativeTabEntry
-
Field Details
-
_instance
The unique instance of this mod.
-
-
Constructor Details
-
CyclopsCore
public CyclopsCore(net.neoforged.bus.api.IEventBus modEventBus)
-
-
Method Details
-
constructClientProxy
- Specified by:
constructClientProxy
in classModBase<CyclopsCore>
-
constructCommonProxy
- Specified by:
constructCommonProxy
in classModBase<CyclopsCore>
-
constructModCompatLoader
protected org.cyclops.cyclopscore.modcompat.ModCompatLoader constructModCompatLoader()- Overrides:
constructModCompatLoader
in classorg.cyclops.cyclopscore.helper.ModBaseCommon<CyclopsCore>
-
constructBaseCommand
protected com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> constructBaseCommand(net.minecraft.commands.Commands.CommandSelection selection, net.minecraft.commands.CommandBuildContext context) - Overrides:
constructBaseCommand
in classModBase<CyclopsCore>
-
setup
protected void setup(net.neoforged.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.neoforged.neoforge.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 classorg.cyclops.cyclopscore.helper.ModBaseCommon<CyclopsCore>
-
onConfigsRegister
public void onConfigsRegister(org.cyclops.cyclopscore.config.ConfigHandlerCommon configHandler) 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.
-