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
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 TypeMethodDescriptionvoidafterCapabilitiesLoaded(net.neoforged.fml.event.lifecycle.InterModEnqueueEvent event) static voidLog a new info message for this mod.static voidLog a new message of the given level for this mod.protected org.cyclops.cyclopscore.proxy.IClientProxyprotected org.cyclops.cyclopscore.proxy.ICommonProxyprotected booleanprotected voidloadModCompats(org.cyclops.cyclopscore.modcompat.ModCompatLoader modCompatLoader) protected voidonConfigsRegister(org.cyclops.cyclopscore.config.ConfigHandler configHandler) voidonRegister(net.neoforged.neoforge.registries.NewRegistryEvent event) voidonRegistriesLoad(net.neoforged.neoforge.registries.RegisterEvent event) protected voidsetup(net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent event) Methods inherited from class org.cyclops.cyclopscore.init.ModBaseVersionable
getInfo, getUpdateUrl, getVersion, isVersionInfo, needsUpdate, setVersionInfoMethods 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, toStringMethods 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:
setupin classorg.cyclops.cyclopscore.init.ModBase<CommonCapabilities>
-
loadModCompats
protected void loadModCompats(org.cyclops.cyclopscore.modcompat.ModCompatLoader modCompatLoader) - Overrides:
loadModCompatsin classorg.cyclops.cyclopscore.init.ModBase<CommonCapabilities>
-
constructClientProxy
protected org.cyclops.cyclopscore.proxy.IClientProxy constructClientProxy()- Specified by:
constructClientProxyin classorg.cyclops.cyclopscore.init.ModBase<CommonCapabilities>
-
constructCommonProxy
protected org.cyclops.cyclopscore.proxy.ICommonProxy constructCommonProxy()- Specified by:
constructCommonProxyin classorg.cyclops.cyclopscore.init.ModBase<CommonCapabilities>
-
hasDefaultCreativeModeTab
protected boolean hasDefaultCreativeModeTab()- Overrides:
hasDefaultCreativeModeTabin classorg.cyclops.cyclopscore.helper.ModBaseCommon<CommonCapabilities>
-
onConfigsRegister
protected void onConfigsRegister(org.cyclops.cyclopscore.config.ConfigHandler configHandler) - Overrides:
onConfigsRegisterin 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.
-