Terraria.TargetDummy.Hook_AfterPlacement C# (CSharp) Method

Hook_AfterPlacement() public static method

public static Hook_AfterPlacement ( int x, int y, int type = 21, int style, int direction = 1 ) : int
x int
y int
type int
style int
direction int
return int
        public static int Hook_AfterPlacement(int x, int y, int type = 21, int style = 0, int direction = 1)
        {
            if (Main.netMode != 1)
                return TargetDummy.Place(x - 1, y - 2);
            NetMessage.SendTileSquare(Main.myPlayer, x - 1, y - 1, 3);
            NetMessage.SendData(87, -1, -1, "", x - 1, (float)(y - 2), 0.0f, 0.0f, 0, 0, 0);
            return -1;
        }