Class CustomModules
Block Modules can be used as plug-and-play behaviour for custom blocks without writing any code.
This class can be used to add new modules to use for other mods (or in the same mod of course).
See the documentation about Modules for detailed usage information.
Namespace: Modding.Modules
Assembly: Assembly-CSharp.dll
Syntax
public static class CustomModules
Methods
AddBlockModule<TModule, TBehaviour>(String, Boolean)
Registers a new block modules.
Declaration
public static void AddBlockModule<TModule, TBehaviour>(string name, bool canReload)
where TModule : BlockModule where TBehaviour : BlockModuleBehaviour<TModule>
Parameters
Type | Name | Description |
---|---|---|
String | name | Name of the module. |
Boolean | canReload |
Type Parameters
Name | Description |
---|---|
TModule | BlockModule class. |
TBehaviour | BlockModuleBehaviour class. |