Package org.cyclops.commoncapabilities
Class CommonCapabilities
java.lang.Object
org.cyclops.cyclopscore.helper.ModBaseCommon<CommonCapabilities>
org.cyclops.cyclopscore.init.ModBase<CommonCapabilities>
org.cyclops.cyclopscore.init.ModBaseVersionable<CommonCapabilities>
org.cyclops.commoncapabilities.CommonCapabilities
- All Implemented Interfaces:
org.cyclops.cyclopscore.init.IModBase
,org.cyclops.cyclopscore.tracking.IModVersion
public class CommonCapabilities
extends org.cyclops.cyclopscore.init.ModBaseVersionable<CommonCapabilities>
The main mod class of this mod.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cyclops.cyclopscore.init.ModBase
org.cyclops.cyclopscore.init.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 TypeMethodDescriptionvoid
afterCapabilitiesLoaded
(net.neoforged.fml.event.lifecycle.InterModEnqueueEvent event) static void
Log a new info message for this mod.static void
Log a new message of the given level for this mod.protected org.cyclops.cyclopscore.proxy.IClientProxy
protected org.cyclops.cyclopscore.proxy.ICommonProxy
protected boolean
protected void
loadModCompats
(org.cyclops.cyclopscore.modcompat.ModCompatLoader modCompatLoader) protected void
onConfigsRegister
(org.cyclops.cyclopscore.config.ConfigHandler configHandler) void
onRegister
(net.neoforged.neoforge.registries.NewRegistryEvent event) void
onRegistriesLoad
(net.neoforged.neoforge.registries.RegisterEvent event) protected void
setup
(net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent 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
constructBaseCommand, 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, log, log, onConfigsRegister, onRegisterCommands, onRegisterKeyMappings, onServerAboutToStart, onServerStarted, onServerStarting, onServerStopping, putGenericReference, registerWorldStorage, setupClient, toString
Methods inherited from class org.cyclops.cyclopscore.helper.ModBaseCommon
constructDefaultCreativeModeTab, constructDefaultCreativeModeTabConfig, constructModCompatLoader, constructRegistryManager, getCommon, getCommonMods, getDefaultCreativeTab, getDefaultCreativeTabEntries, getModCompatLoader, getRegistryManager, registerDefaultCreativeTabEntry
-
Field Details
-
_instance
The unique instance of this mod.
-
-
Constructor Details
-
CommonCapabilities
public CommonCapabilities(net.neoforged.bus.api.IEventBus modEventBus)
-
-
Method Details
-
setup
protected void setup(net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent event) - Overrides:
setup
in classorg.cyclops.cyclopscore.init.ModBase<CommonCapabilities>
-
loadModCompats
protected void loadModCompats(org.cyclops.cyclopscore.modcompat.ModCompatLoader modCompatLoader) - Overrides:
loadModCompats
in classorg.cyclops.cyclopscore.init.ModBase<CommonCapabilities>
-
constructClientProxy
protected org.cyclops.cyclopscore.proxy.IClientProxy constructClientProxy()- Specified by:
constructClientProxy
in classorg.cyclops.cyclopscore.init.ModBase<CommonCapabilities>
-
constructCommonProxy
protected org.cyclops.cyclopscore.proxy.ICommonProxy constructCommonProxy()- Specified by:
constructCommonProxy
in classorg.cyclops.cyclopscore.init.ModBase<CommonCapabilities>
-
hasDefaultCreativeModeTab
protected boolean hasDefaultCreativeModeTab()- Overrides:
hasDefaultCreativeModeTab
in classorg.cyclops.cyclopscore.helper.ModBaseCommon<CommonCapabilities>
-
onConfigsRegister
protected void onConfigsRegister(org.cyclops.cyclopscore.config.ConfigHandler configHandler) - Overrides:
onConfigsRegister
in classorg.cyclops.cyclopscore.init.ModBase<CommonCapabilities>
-
onRegister
public void onRegister(net.neoforged.neoforge.registries.NewRegistryEvent event) -
onRegistriesLoad
public void onRegistriesLoad(net.neoforged.neoforge.registries.RegisterEvent event) -
afterCapabilitiesLoaded
public void afterCapabilitiesLoaded(net.neoforged.fml.event.lifecycle.InterModEnqueueEvent event) -
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.
-