This method sets a variety of Item values common to items that place tiles.
Specifically:
createTile = tileIDToPlace; placeStyle = tileStyleToPlace; width = 14; height = 14; useStyle = F:Terraria.ID.ItemUseStyleID.Swing; useAnimation = 15; useTime = 10; maxStack = F:Terraria.Item.CommonMaxStack; useTurn = true; autoReuse = true; consumable = true;
- Parameters
-
| tileIDToPlace | |
| tileStyleToPlace | |
Definition at line 48601 of file Item.cs.
48602 {
48614 }
int width
The width of this Entity's hitbox, in pixels.
int height
The height of this Entity's hitbox, in pixels.
bool useTurn
Whether the player can turn around while the using animation of this item is happening....
int useAnimation
The time span of the using animation for the item in ticks. This is independent of the time it takes ...
int maxStack
The maximum number of items that can be contained within a single stack. F:Terraria....
int createTile
The ID of the tile this item places on use. Either a T:Terraria.ID.TileID entry or M:Terraria....
bool consumable
Whether the item is consumed after use. If consumed, the item stack will decrease by 1....
int useStyle
Assign to an T:Terraria.ID.ItemUseStyleID value to give this item a specific animation while in use....
static int CommonMaxStack
The default stack size for stackable items: 9999.
int placeStyle
The style of the tile being placed. Used for tiles that have a different look depending on the item u...
int useTime
The time span of using the item in ticks. This is independent of the time it takes for the item anima...
bool autoReuse
Whether the item is in continuous use while the mouse button is held down. Defaults to false.
References Terraria.Item.autoReuse, Terraria.Item.CommonMaxStack, Terraria.Item.consumable, Terraria.Item.createTile, Terraria.Entity.height, Terraria.Item.maxStack, Terraria.Item.placeStyle, Terraria.Item.useAnimation, Terraria.Item.useStyle, Terraria.Item.useTime, Terraria.Item.useTurn, and Terraria.Entity.width.