tModLoader v2023.01
A mod to make and play Terraria mods
Terraria.ModLoader.IPlant Interface Referenceabstract

Inherits Terraria.ModLoader.ILoadable.

Inherited by Terraria.ModLoader.ITree, and Terraria.ModLoader.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 Terraria.ModLoader.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. Terraria.ModLoader.IPlant.Load ( Mod  mod)
virtual

Called when loading the type.

Parameters
modThe mod instance associated with this type.

Implements Terraria.ModLoader.ILoadable.

◆ Unload()

void ILoadable. Terraria.ModLoader.IPlant.Unload ( )
virtual

Called during unloading when needed.

Implements Terraria.ModLoader.ILoadable.

Property Documentation

◆ PlantTileId

int Terraria.ModLoader.IPlant.PlantTileId
get