21145 {
21146
21147
21148
21149
21150
21151
21152
21153
21155 {
21156 return;
21157 }
21160 {
21163 {
21169 {
21171 }
21173 }
21174 }
21179 {
21181 {
21182 continue;
21183 }
21185 {
21187 {
21188 continue;
21189 }
21191 if (Main.tile[
j,
k].type == 29)
21192 {
21194 }
21195 else if (Main.tile[
j,
k].type == 97)
21196 {
21198 }
21199 else if (Main.tile[
j,
k].type == 463)
21200 {
21202 }
21203 else if (Main.tile[
j,
k].type == 491)
21204 {
21206 }
21208 {
21209 continue;
21210 }
21211 Vector2
val =
new Vector2((
float)(
j * 16 + 8), (
float)(
k * 16 + 8)) -
base.Center;
21212 if (((Vector2)(
ref val)).Length() < 600
f)
21213 {
21219 {
21221 }
21223 }
21224 }
21225 }
21226 if (Main.netMode == 1)
21227 {
21228 for (
int l = 10;
l < 50;
l++)
21229 {
21231 {
21235 }
21236 }
21238 {
21239 return;
21240 }
21241 for (
int m = 0;
m < 40;
m++)
21242 {
21244 {
21248 }
21249 }
21250 return;
21251 }
21252 for (
int n = 10;
n < 50;
n++)
21253 {
21255 {
21260 {
21262 }
21263 }
21264 }
21266 {
21267 return;
21268 }
21270 {
21272 {
21277 {
21279 }
21280 }
21281 }
21282 }
Item[] item
The items this chest contains. F:Terraria.Chest.maxItems elements long.
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
static readonly int Bank4_0
static readonly int Inventory0
int stack
The current stack of the item. F:Terraria.Item.maxStack indicates the max possible stack.
bool favorited
If true, then the given item is favorited. Favorited items cannot be dropped, automatically moved in...
int prefix
The current prefix applied to this item. Either a T:Terraria.ID.PrefixID entry or M:Terraria....
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....
int chest
Represents the chest the player currently has open. If -1, the player has no chest open....
bool HasLockedInventory()
List< int > GetNearbyContainerProjectilesList()
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
bool[] inventoryChestStack
static void QuickStack(ContainerTransferContext context, bool voidStack=false)
static ContainerTransferContext FromProjectile(Projectile projectile)
static ContainerTransferContext FromBlockPosition(int x, int y)