Package org.cyclops.cyclopscore
Class CyclopsCoreNeoForge
java.lang.Object
org.cyclops.cyclopscore.helper.ModBaseCommon<CyclopsCoreNeoForge>
org.cyclops.cyclopscore.init.ModBaseNeoForge<CyclopsCoreNeoForge>
org.cyclops.cyclopscore.CyclopsCoreNeoForge
- All Implemented Interfaces:
org.cyclops.cyclopscore.init.IModBase
The main mod class of CyclopsCore.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cyclops.cyclopscore.init.ModBaseNeoForge
ModBaseNeoForge.EnumReferenceKey<T> -
Field Summary
FieldsFields inherited from class org.cyclops.cyclopscore.init.ModBaseNeoForge
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.ModCompatLoaderClass<?>[]protected booleanbooleanisLoaded()voidonConfigsRegister(org.cyclops.cyclopscore.config.ConfigHandlerCommon configHandler) 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.ModBaseNeoForge
constructCapabilityConstructorRegistry, constructConfigHandler, constructIMCHandler, constructLoggerHelper, constructPacketHandler, get, getCapabilityConstructorRegistry, getConfigHandler, getContainer, getGenericReference, getImcHandler, getKeyRegistry, getModEventBus, getModHelpers, getModName, getMods, getPacketHandler, getProxy, getReferenceValue, getWorldStorages, onRegisterCommands, onRegisterKeyMappings, onServerStarted, onServerStopping, putGenericReference, registerGameTests, registerWorldStorage, setupClientMethods inherited from class org.cyclops.cyclopscore.helper.ModBaseCommon
constructDefaultCreativeModeTab, constructDefaultCreativeModeTabConfig, constructRegistryManager, equals, getCommon, getCommonMods, getDefaultCreativeTab, getDefaultCreativeTabEntries, getLoggerHelper, getModCompatLoader, getModId, getRegistryManager, hashCode, loadModCompats, registerDefaultCreativeTabEntry, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cyclops.cyclopscore.init.IModBase
log, log
-
Field Details
-
_instance
The unique instance of this mod.
-
-
Constructor Details
-
CyclopsCoreNeoForge
public CyclopsCoreNeoForge(net.neoforged.bus.api.IEventBus modEventBus)
-
-
Method Details
-
constructClientProxy
- Specified by:
constructClientProxyin classModBaseNeoForge<CyclopsCoreNeoForge>
-
constructCommonProxy
- Specified by:
constructCommonProxyin classModBaseNeoForge<CyclopsCoreNeoForge>
-
constructModCompatLoader
protected org.cyclops.cyclopscore.modcompat.ModCompatLoader constructModCompatLoader()- Overrides:
constructModCompatLoaderin classorg.cyclops.cyclopscore.helper.ModBaseCommon<CyclopsCoreNeoForge>
-
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 classModBaseNeoForge<CyclopsCoreNeoForge>
-
setup
protected void setup(net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent event) Description copied from class:ModBaseNeoForgeCalled on the Forge setup lifecycle event.- Overrides:
setupin classModBaseNeoForge<CyclopsCoreNeoForge>- Parameters:
event- The setup event.
-
onServerStarting
protected void onServerStarting(net.neoforged.neoforge.event.server.ServerStartingEvent event) Description copied from class:ModBaseNeoForgeRegister the things that are related to when the server is starting.- Overrides:
onServerStartingin classModBaseNeoForge<CyclopsCoreNeoForge>- Parameters:
event- The Forge server starting event.
-
hasDefaultCreativeModeTab
protected boolean hasDefaultCreativeModeTab()- Overrides:
hasDefaultCreativeModeTabin classorg.cyclops.cyclopscore.helper.ModBaseCommon<CyclopsCoreNeoForge>
-
onConfigsRegister
public void onConfigsRegister(org.cyclops.cyclopscore.config.ConfigHandlerCommon configHandler) - Overrides:
onConfigsRegisterin classorg.cyclops.cyclopscore.helper.ModBaseCommon<CyclopsCoreNeoForge>
-
getGameTestClasses
- Overrides:
getGameTestClassesin classorg.cyclops.cyclopscore.helper.ModBaseCommon<CyclopsCoreNeoForge>
-
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.
-