TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
IPlant.cs
Go to the documentation of this file.
1using Microsoft.Xna.Framework.Graphics;
2using ReLogic.Content;
3
4namespace Terraria.ModLoader;
5
6public interface IPlant : ILoadable
7{
8 int PlantTileId { get; }
9
10 int VanillaCount { get; }
11
12 int[] GrowsOnTileId { get; set; }
13
15
17
18 void ILoadable.Load(Mod mod)
19 {
20 PlantLoader.plantList.Add(this);
21 }
22
24 {
25 }
26}
Mod is an abstract class that you will override. It serves as a central place from which the mod's co...
Definition Mod.cs:28
static List< IPlant > plantList
void Load(Mod mod)
Called when loading the type.
void Unload()
Called during unloading when needed.
Allows for implementing types to be loaded and unloaded.
Definition ILoadable.cs:7
Asset< Texture2D > GetTexture()