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

◆ StartCachingType()

static void Terraria.Item.StartCachingType ( int t)
inlinestatic

Begins caching items spawns for a given item type (F:Terraria.Item.type).
Cached item types will not be spawned into the world when created with Item.NewItem().
Cache sizes can be checked by indexing F:Terraria.Item.cachedItemSpawnsByType and dropped using M:Terraria.Item.DropCache(Terraria.DataStructures.IEntitySource,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Vector2,System.Int32,System.Boolean).

Parameters
tThe item type to start caching.

Definition at line 1181 of file Item.cs.

1182 {
1183 if (cachedItemSpawnsByType[t] == -1)
1184 {
1186 }
1187 }
static int[] cachedItemSpawnsByType
The number of cached item spawns by type. A value of -1 means that an item type is not being cached....
Definition Item.cs:102

References Terraria.Item.cachedItemSpawnsByType.

Referenced by Terraria.Wiring.MassWireOperationInner().

+ Here is the caller graph for this function: