tModLoader v2024.11
A mod to make and play Terraria mods
PlantLoader Class Reference

Static Public Member Functions

static void CheckAndInjectModSapling (int x, int y, ref int tileToCreate, ref int previewPlaceStyle)
 
static bool Exists (int plantTileID, int growsOnTileID)
 
static T Get< T > (int plantTileID, int growsOnTileID)
 
static Asset< Texture2D > GetCactusFruitTexture (int type)
 
static TreeTypes GetModTreeType (int type)
 
static Asset< Texture2D > GetTexture (int plantId, int tileType)
 
static ITree GetTree (int type)
 
static void GetTreeLeaf (int type, ref int leafGoreType)
 
static bool ShakeTree (int x, int y, int type, ref bool createLeaves)
 

Member Function Documentation

◆ Get< T >()

static T PlantLoader.Get< T > ( int  plantTileID,
int  growsOnTileID 
)
static
Type Constraints
T :IPlant