Terraria.ModLoader.GlobalWall

This class allows you to modify the behavior of any wall in the game (although admittedly walls don't have much behavior). Create an instance of an overriding class then call Mod.AddGlobalWall to use this.

Methods

Autoload(System.String@)()
Allows you to automatically load a GlobalWall instead of using Mod.AddGlobalWall. Return true to allow autoloading; by default returns the mod's autoload property. Name is initialized to the overriding class name. Use this method to either force or stop an autoload or to control the internal name.
SetDefaults()
Allows you to modify the properties of any wall in the game. Most properties are stored as arrays throughout the Terraria code.
KillSound(System.Int32,System.Int32,System.Int32)()
Allows you to customize which sound you want to play when the wall at the given coordinates is hit. Return false to stop the game from playing its default sound for the wall. Returns true by default.
NumDust(System.Int32,System.Int32,System.Int32,System.Boolean,System.Int32@)()
Allows you to change how many dust particles are created when the wall at the given coordinates is hit.
CreateDust(System.Int32,System.Int32,System.Int32,System.Int32@)()
Allows you to modify the default type of dust created when the wall at the given coordinates is hit. Return false to stop the default dust (the dustType parameter) from being created. Returns true by default.
Drop(System.Int32,System.Int32,System.Int32,System.Int32@)()
Allows you to customize which items the wall at the given coordinates drops. Return false to stop the game from dropping the wall's default item (the dropType parameter). Returns true by default.
KillWall(System.Int32,System.Int32,System.Int32,System.Boolean@)()
Allows you to determine what happens when the wall at the given coordinates is killed or hit with a hammer. Fail determines whether the wall is mined (whether it is killed).
CanExplode(System.Int32,System.Int32,System.Int32)()
Whether or not the wall at the given coordinates can be killed by an explosion (ie. bombs). Returns true by default; return false to stop an explosion from destroying it.
ModifyLight(System.Int32,System.Int32,System.Int32,System.Single@,System.Single@,System.Single@)()
Allows you to determine how much light the wall emits. This can also let you light up the block in front of the wall.
RandomUpdate(System.Int32,System.Int32,System.Int32)()
Called for every wall the world randomly decides to update in a given tick. Useful for things such as growing or spreading.
PreDraw(System.Int32,System.Int32,System.Int32,Microsoft.Xna.Framework.Graphics.SpriteBatch)()
Allows you to draw things behind the wall at the given coordinates. Return false to stop the game from drawing the wall normally. Returns true by default.
PostDraw(System.Int32,System.Int32,System.Int32,Microsoft.Xna.Framework.Graphics.SpriteBatch)()
Allows you to draw things in front of the wall at the given coordinates.
PlaceInWorld(System.Int32,System.Int32,System.Int32,Terraria.Item)()
Called after this wall type was placed in the world by way of the item provided.