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 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) 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.ModBaseNeoForge
constructCapabilityConstructorRegistry, constructConfigHandler, constructIMCHandler, constructLoggerHelper, constructPacketHandler, get, getCapabilityConstructorRegistry, getConfigHandler, getContainer, getGenericReference, getImcHandler, getKeyRegistry, getModEventBus, getModHelpers, getModName, getMods, getPacketHandler, getProxy, getReferenceValue, getWorldStorages, onRegisterCommands, onRegisterKeyMappings, onServerAboutToStart, onServerStarted, onServerStopping, putGenericReference, registerWorldStorage, setupClient
Methods inherited from class org.cyclops.cyclopscore.helper.ModBaseCommon
constructDefaultCreativeModeTab, constructDefaultCreativeModeTabConfig, constructRegistryManager, equals, getCommon, getCommonMods, getDefaultCreativeTab, getDefaultCreativeTabEntries, getLoggerHelper, getModCompatLoader, getModId, getRegistryManager, hashCode, loadModCompats, registerDefaultCreativeTabEntry, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
constructClientProxy
in classModBaseNeoForge<CyclopsCoreNeoForge>
-
constructCommonProxy
- Specified by:
constructCommonProxy
in classModBaseNeoForge<CyclopsCoreNeoForge>
-
constructModCompatLoader
protected org.cyclops.cyclopscore.modcompat.ModCompatLoader constructModCompatLoader()- Overrides:
constructModCompatLoader
in 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:
constructBaseCommand
in classModBaseNeoForge<CyclopsCoreNeoForge>
-
setup
protected void setup(net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent event) Description copied from class:ModBaseNeoForge
Called on the Forge setup lifecycle event.- Overrides:
setup
in classModBaseNeoForge<CyclopsCoreNeoForge>
- Parameters:
event
- The setup event.
-
onServerStarting
protected void onServerStarting(net.neoforged.neoforge.event.server.ServerStartingEvent event) Description copied from class:ModBaseNeoForge
Register the things that are related to when the server is starting.- Overrides:
onServerStarting
in classModBaseNeoForge<CyclopsCoreNeoForge>
- Parameters:
event
- The Forge server starting event.
-
hasDefaultCreativeModeTab
protected boolean hasDefaultCreativeModeTab()- Overrides:
hasDefaultCreativeModeTab
in classorg.cyclops.cyclopscore.helper.ModBaseCommon<CyclopsCoreNeoForge>
-
onConfigsRegister
public void onConfigsRegister(org.cyclops.cyclopscore.config.ConfigHandlerCommon configHandler) - Overrides:
onConfigsRegister
in classorg.cyclops.cyclopscore.helper.ModBaseCommon<CyclopsCoreNeoForge>
-
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.
-