TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ GetTree()

static ITree Terraria.ModLoader.PlantLoader.GetTree ( int type)
inlinestatic

Definition at line 78 of file PlantLoader.cs.

79 {
80 ModTree tree = Get<ModTree>(5, type);
81 if (tree != null)
82 {
83 return tree;
84 }
85 ModPalmTree palm = Get<ModPalmTree>(323, type);
86 if (palm != null)
87 {
88 return palm;
89 }
90 return null;
91 }

Referenced by Terraria.ModLoader.PlantLoader.GetModTreeType(), Terraria.ModLoader.PlantLoader.GetTreeLeaf(), and Terraria.ModLoader.PlantLoader.ShakeTree().

+ Here is the caller graph for this function: