TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ HitWire()

virtual void Terraria.ModLoader.GlobalTile.HitWire ( int i,
int j,
int type )
inlinevirtual

Allows you to make something happen when a wire current passes through any tile. Both M:Terraria.Wiring.SkipWire(System.Int32,System.Int32) and M:Terraria.NetMessage.SendTileSquare(System.Int32,System.Int32,System.Int32,System.Int32,Terraria.ID.TileChangeType) are usually required in the logic used in this method to correctly work.
Only called on the server and single player. All wiring happens on the world, not multiplayer clients.

Parameters
iThe x position in tile coordinates.
jThe y position in tile coordinates.
type

Definition at line 270 of file GlobalTile.cs.

271 {
272 }