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

◆ AddTile() [1/3]

Recipe Terraria.Recipe.AddTile ( int tileID)
inline

Adds a required crafting station with the given tile type to this recipe. Ex: recipe.AddTile(TileID.WorkBenches)

Parameters
tileIDThe tile identifier.
Exceptions
T:Terraria.ModLoader.Exceptions.RecipeExceptionNo tile has ID " + tileID

Definition at line 16299 of file Recipe.cs.

16300 {
16302 {
16303 throw new RecipeException($"No tile has ID '{tileID}'.");
16304 }
16305 requiredTile.Add(tileID);
16306 return this;
16307 }
This serves as the central class from which tile-related functions are supported and carried out.
Definition TileLoader.cs:23
List< int > requiredTile
Definition Recipe.cs:66

References Terraria.Recipe.requiredTile, and Terraria.ModLoader.TileLoader.TileCount.

Referenced by Terraria.Recipe.AddTile(), Terraria.Recipe.AddTile(), and Terraria.Recipe.AddTile< T >().

+ Here is the caller graph for this function: