public static void NetPlaceEntity(int x, int y, int type) { if (type != 1 || !TEItemFrame.ValidTile(x, y)) { return; } NetMessage.SendData(86, -1, -1, (NetworkText)null, TEItemFrame.Place(x, y), (float)x, (float)y, 0.0f, 0, 0, 0); }
public static int Hook_AfterPlacement(int x, int y, int type = 395, int style = 0, int direction = 1) { if (Main.netMode != 1) { return(TEItemFrame.Place(x, y)); } NetMessage.SendTileSquare(Main.myPlayer, x, y, 2, TileChangeType.None); NetMessage.SendData(87, -1, -1, (NetworkText)null, x, (float)y, 1f, 0.0f, 0, 0, 0); return(-1); }
public static int Hook_AfterPlacement(int x, int y, int type = 21, int style = 0, int direction = 1) { if (Main.netMode != 1) { return(TEItemFrame.Place(x, y)); } NetMessage.SendTileSquare(Main.myPlayer, x, y, 2); NetMessage.SendData((int)PacketTypes.PlaceTileEntity, -1, -1, "", x, (float)y, 1f, 0f, 0, 0, 0); return(-1); }
public static void NetPlaceEntity(int x, int y, int type) { if (type != 1) { return; } if (!TEItemFrame.ValidTile(x, y)) { return; } int number = TEItemFrame.Place(x, y); NetMessage.SendData(86, -1, -1, "", number, (float)x, (float)y, 0f, 0, 0, 0); }
public static void NetPlaceEntity(int x, int y) { NetMessage.SendData(86, -1, -1, (NetworkText)null, TEItemFrame.Place(x, y), (float)x, (float)y, 0.0f, 0, 0, 0); }