56 public static int Place(
int x,
int y)
59 tETeleportationPylon.Position =
new Point16(x, y);
71 public static void Kill(
int x,
int y)
86 return Position.X +
"x " + Position.Y +
"y";
98 num -= tileSafely.frameX / 18 % 3;
99 num2 -= tileSafely.frameY / 18 % 4;
102 for (
int i =
num; i <
num + 3; i++)
127 WorldGen.destroyObject =
true;
138 WorldGen.destroyObject =
false;
143 return tile.frameX / 54;
179 return Place(x + -1, y + -3);
187 if (!
flag.GetValueOrDefault())
205 if (tile ==
null || !tile.
active() || tile.
type != 597)
219 public static int Find(
int x,
int y)
Used when a tile or wall is broken.
static Dictionary< int, TileEntity > ByID
static Dictionary< Point16, TileEntity > ByPosition
static object EntityCreationLock
static Tile GetTileSafely(Vector2 position)
bool TryGetPylonType(out TeleportPylonType pylonType)
static int Place(int x, int y)
static int PlacementPreviewHook_CheckIfCanPlace(int x, int y, int type=597, int style=0, int direction=1, int alternate=0)
static int PlacementPreviewHook_AfterPlacement(int x, int y, int type=597, int style=0, int direction=1, int alternate=0)
override TileEntity GenerateInstance()
const int entityTileWidth
static int GetPylonItemTypeFromTileStyle(int style)
static void Kill(int x, int y)
static void Framing_CheckTile(int callX, int callY)
static int Find(int x, int y)
static TeleportPylonType GetPylonTypeFromPylonTileStyle(int pylonStyle)
static void RejectPlacementFromNet(int x, int y)
override void NetPlaceEntityAttempt(int x, int y)
static int GetPylonStyleFromTile(Tile tile)
bool TryGetPylonTypeFromTileCoords(int x, int y, out TeleportPylonType pylonType)
override string ToString()
const int entityTileHeight
override void RegisterTileEntityID(int assignedID)
override bool IsTileValidForEntity(int x, int y)
static int NewItem(IEntitySource source, Vector2 pos, Vector2 randomBox, int Type, int Stack=1, bool noBroadcast=false, int prefixGiven=0, bool noGrabDelay=false, bool reverseLookup=false)
This particular overload uses two Vector2 to determine the actual spawn position.
static int myPlayer
The index in F:Terraria.Main.player of this client's Player. If this is 255, this client is the ser...
static int netMode
Denotes the current network mode: 0 for single player client, 1 for multiplayer client,...
static TeleportPylonsSystem PylonSystem
static ? bool PreCanPlacePylon(int x, int y, int tileType, TeleportPylonType pylonType)
static bool Drop(int i, int j, int type, bool includeLargeObjectDrops=true)
This serves as the central class from which tile-related functions are supported and carried out.
static void SendData(int msgType, int remoteClient=-1, int ignoreClient=-1, NetworkText text=null, int number=0, float number2=0f, float number3=0f, float number4=0f, int number5=0, int number6=0, int number7=0)
static void SendTileSquare(int whoAmi, int tileX, int tileY, int xSize, int ySize, TileChangeType changeType=TileChangeType.None)
static bool destroyObject
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static bool SolidTileAllowBottomSlope(int i, int j)
Allows Tile Entities that you want to be included in vanilla's pylon list to actually be added to the...
ref ushort type
Legacy code, use P:Terraria.Tile.TileType instead.
bool active()
Legacy code, use P:Terraria.Tile.HasTile instead.
A data structure used for accessing information about tiles, walls, wires, and liquids at a single po...