tModLoader v2024.09
A mod to make and play Terraria mods
IPlant Interface Referenceabstract

Inherits ILoadable.

Inherited by ITree, and ModCactus.

Public Member Functions

abstract Asset< Texture2D > GetTexture ()
 
void ILoadable. Load (Mod mod)
 Called when loading the type. More...
 
abstract void SetStaticDefaults ()
 
void ILoadable. Unload ()
 Called during unloading when needed. More...
 
- Public Member Functions inherited from ILoadable
virtual bool IsLoadingEnabled (Mod mod)
 Whether or not this type should be loaded when it's told to. Returning false disables Mod.AddContent from actually loading this type. More...
 
abstract void Load (Mod mod)
 Called when loading the type. More...
 
abstract void Unload ()
 Called during unloading when needed. More...
 

Properties

int[] GrowsOnTileId [get, set]
 
int PlantTileId [get]
 
int VanillaCount [get]
 

Member Function Documentation

◆ Load()

void ILoadable. IPlant.Load ( Mod  mod)
virtual

Called when loading the type.

Parameters
modThe mod instance associated with this type.

Implements ILoadable.

◆ Unload()

void ILoadable. IPlant.Unload ( )
virtual

Called during unloading when needed.

Implements ILoadable.

Property Documentation

◆ PlantTileId

int IPlant.PlantTileId
get

Implemented in ModCactus, ModTree, and ModPalmTree.