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
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> constructBaseCommand(net.minecraft.commands.Commands.CommandSelection selection, net.minecraft.commands.CommandBuildContext context) protected IClientProxyprotected ICommonProxyprotected org.cyclops.cyclopscore.modcompat.ModCompatLoaderprotected booleanbooleanisLoaded()voidonConfigsRegister(org.cyclops.cyclopscore.config.ConfigHandlerCommon configHandler) Called when the configs should be registered.protected voidonServerStarting(net.neoforged.neoforge.event.server.ServerStartingEvent event) Register the things that are related to when the server is starting.protected voidsetup(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, setVersionInfoMethods 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, toStringMethods 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:
constructClientProxyin classModBase<CyclopsCore>
-
constructCommonProxy
- Specified by:
constructCommonProxyin classModBase<CyclopsCore>
-
constructModCompatLoader
protected org.cyclops.cyclopscore.modcompat.ModCompatLoader constructModCompatLoader()- Overrides:
constructModCompatLoaderin 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:
constructBaseCommandin classModBase<CyclopsCore>
-
setup
protected void setup(net.neoforged.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.neoforged.neoforge.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 classorg.cyclops.cyclopscore.helper.ModBaseCommon<CyclopsCore>
-
onConfigsRegister
public void onConfigsRegister(org.cyclops.cyclopscore.config.ConfigHandlerCommon configHandler) 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.
-