tModLoader v2024.04
A mod to make and play Terraria mods
ITree Interface Reference

Inherits IPlant.

Inherited by ModPalmTree, and ModTree.

Public Member Functions

bool Shake (int x, int y, ref bool createLeaves)
 
int TreeLeaf ()
 
- Public Member Functions inherited from IPlant
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

TreeTypes CountsAsTreeType [get]
 
- Properties inherited from IPlant
int[] GrowsOnTileId [get, set]
 
int PlantTileId [get]
 
int VanillaCount [get]
 

Member Function Documentation

◆ Shake()

bool ITree.Shake ( int  x,
int  y,
ref bool  createLeaves 
)

Implemented in ModTree, and ModPalmTree.

◆ TreeLeaf()

int ITree.TreeLeaf ( )

Implemented in ModTree, and ModPalmTree.

Property Documentation

◆ CountsAsTreeType

TreeTypes ITree.CountsAsTreeType
get

Implemented in ModTree, and ModPalmTree.