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

◆ IsLocked() [1/2]

static bool Terraria.Chest.IsLocked ( int x,
int y )
inlinestatic

Determines if the chest at F:Terraria.Main.tile[x , y ] is locked.

Parameters
xThe x-coordinate of the chest to check, in tile coordinates.
yThe y-coordinate of the chest to check, in tile coordinates.
Returns
true if the chest is locked, false otherwise.

Definition at line 324 of file Chest.cs.

325 {
326 return IsLocked(x, y, Main.tile[x, y]);
327 }
int x
The x-coordinate of this chest in the world, in tile coordinates. (Top left corner tile)
Definition Chest.cs:98
int y
The y-coordinate of this chest in the world, in tile coordinates. (Top left corner tile)
Definition Chest.cs:103
static bool IsLocked(int x, int y)
Determines if the chest at F:Terraria.Main.tile[x , y ] is locked.
Definition Chest.cs:324

References Terraria.Chest.IsLocked(), Terraria.Main.tile, Terraria.Chest.x, and Terraria.Chest.y.

Referenced by Terraria.Chest.IsLocked(), Terraria.Chest.PutItemInNearbyChest(), Terraria.Player.TileInteractionsUse(), and Terraria.WorldGen.WouldTileReplacementWork().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: