Terraria ModLoader  0.10.1.5
A framework for Terraria mods
Terraria.ModLoader.ModCactus Class Referenceabstract

This class represents a type of modded cactus. The cactus will share a tile ID with the vanilla cacti (80), so that the cacti can freely convert between each other if the sand below is converted. This class encapsulates a function for retrieving the cactus's texture, the only difference between each type of cactus. Use ModTile.SetModCactus or GlobalTile.AddModCactus to make a tile able to grow this kind of cactus. More...

Public Member Functions

abstract Texture2D GetTexture ()
 Return the texture that represents the tile sheet used for drawing this cactus. More...
 

Detailed Description

This class represents a type of modded cactus. The cactus will share a tile ID with the vanilla cacti (80), so that the cacti can freely convert between each other if the sand below is converted. This class encapsulates a function for retrieving the cactus's texture, the only difference between each type of cactus. Use ModTile.SetModCactus or GlobalTile.AddModCactus to make a tile able to grow this kind of cactus.

Definition at line 114 of file ConvertiblePlants.cs.

Member Function Documentation

abstract Texture2D Terraria.ModLoader.ModCactus.GetTexture ( )
pure virtual

Return the texture that represents the tile sheet used for drawing this cactus.

Returns