Place() public static method

public static Place ( int x, int y ) : int
x int
y int
return int
Example #1
0
 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;
 }
Example #2
0
 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((int)PacketTypes.PlaceTileEntity, -1, -1, "", x - 1, (float)(y - 2), 0f, 0f, 0, 0, 0);
     return(-1);
 }