tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.ModLoader.ITree Interface Reference

Inherits Terraria.ModLoader.IPlant.

Inherited by Terraria.ModLoader.ModPalmTree, and Terraria.ModLoader.ModTree.

Public Member Functions

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

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

Member Function Documentation

◆ Shake()

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

◆ TreeLeaf()

int Terraria.ModLoader.ITree.TreeLeaf ( )

Property Documentation

◆ CountsAsTreeType

TreeTypes Terraria.ModLoader.ITree.CountsAsTreeType
get