This class represents a type of modded palm tree. The palm tree will share a tile ID with the vanilla palm trees (323), so that the trees can freely convert between each other if the sand below is converted. This class encapsulates several functions that distinguish each type of palm tree from each other.
More...
Inherits Terraria.ModLoader.ITree.
|
virtual int | CreateDust () |
| Return the type of dust created when this palm tree is destroyed. Returns 215 by default. More...
|
|
abstract int | DropWood () |
| The ID of the item that is dropped in bulk when this palm tree is destroyed. More...
|
|
abstract Asset< Texture2D > | GetOasisTopTextures () |
| Return the texture containing the possible tree tops that can be drawn above this palm tree. More...
|
|
abstract Asset< Texture2D > | GetTexture () |
|
abstract Asset< Texture2D > | GetTopTextures () |
| Return the texture containing the possible tree tops that can be drawn above this palm tree. More...
|
|
virtual int | SaplingGrowthType (ref int style) |
| Defines the sapling that can eventually grow into a tree. The type of the sapling should be returned here. Returns 20 and style 0 by default. The style parameter will determine which sapling is chosen if multiple sapling types share the same ID; even if you only have a single sapling in an ID, you must still set this to 0. More...
|
|
abstract void | SetStaticDefaults () |
|
virtual bool | Shake (int x, int y, ref bool createLeaves) |
| Executed on tree shake, return false to skip vanilla tree shake drops More...
|
|
virtual int | TreeLeaf () |
| Return the type of gore created when the tree grow, being shook and falling leaves on windy days, returns -1 by default More...
|
|
bool | Shake (int x, int y, ref bool createLeaves) |
|
int | TreeLeaf () |
|
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...
|
|
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...
|
|
|
const int | VanillaStyleCount = 8 |
|
This class represents a type of modded palm tree. The palm tree will share a tile ID with the vanilla palm trees (323), so that the trees can freely convert between each other if the sand below is converted. This class encapsulates several functions that distinguish each type of palm tree from each other.
◆ CreateDust()
virtual int Terraria.ModLoader.ModPalmTree.CreateDust |
( |
| ) |
|
|
virtual |
Return the type of dust created when this palm tree is destroyed. Returns 215 by default.
- Returns
◆ DropWood()
abstract int Terraria.ModLoader.ModPalmTree.DropWood |
( |
| ) |
|
|
pure virtual |
The ID of the item that is dropped in bulk when this palm tree is destroyed.
- Returns
◆ GetOasisTopTextures()
abstract Asset< Texture2D > Terraria.ModLoader.ModPalmTree.GetOasisTopTextures |
( |
| ) |
|
|
pure virtual |
Return the texture containing the possible tree tops that can be drawn above this palm tree.
- Returns
◆ GetTexture()
abstract Asset< Texture2D > Terraria.ModLoader.ModPalmTree.GetTexture |
( |
| ) |
|
|
pure virtual |
◆ GetTopTextures()
abstract Asset< Texture2D > Terraria.ModLoader.ModPalmTree.GetTopTextures |
( |
| ) |
|
|
pure virtual |
Return the texture containing the possible tree tops that can be drawn above this palm tree.
- Returns
◆ SaplingGrowthType()
virtual int Terraria.ModLoader.ModPalmTree.SaplingGrowthType |
( |
ref int |
style | ) |
|
|
virtual |
Defines the sapling that can eventually grow into a tree. The type of the sapling should be returned here. Returns 20 and style 0 by default. The style parameter will determine which sapling is chosen if multiple sapling types share the same ID; even if you only have a single sapling in an ID, you must still set this to 0.
- Parameters
-
- Returns
◆ SetStaticDefaults()
abstract void Terraria.ModLoader.ModPalmTree.SetStaticDefaults |
( |
| ) |
|
|
pure virtual |
◆ Shake()
virtual bool Terraria.ModLoader.ModPalmTree.Shake |
( |
int |
x, |
|
|
int |
y, |
|
|
ref bool |
createLeaves |
|
) |
| |
|
virtual |
◆ TreeLeaf()
virtual int Terraria.ModLoader.ModPalmTree.TreeLeaf |
( |
| ) |
|
|
virtual |
Return the type of gore created when the tree grow, being shook and falling leaves on windy days, returns -1 by default
- Returns
Implements Terraria.ModLoader.ITree.
◆ CountsAsTreeType
virtual TreeTypes Terraria.ModLoader.ModPalmTree.CountsAsTreeType |
|
get |
◆ GrowsOnTileId
int [] Terraria.ModLoader.ModPalmTree.GrowsOnTileId |
|
getset |
◆ PlantTileId
int Terraria.ModLoader.ModPalmTree.PlantTileId |
|
get |
The tree will share a tile ID with the vanilla palm trees (323), so that the trees can freely convert between each other if the sand below is converted.
Implements Terraria.ModLoader.IPlant.
◆ VanillaCount
int Terraria.ModLoader.ModPalmTree.VanillaCount |
|
get |