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

◆ GetEquipTexture() [2/2]

static EquipTexture Terraria.ModLoader.EquipLoader.GetEquipTexture ( Mod mod,
string name,
EquipType type )
inlinestatic

Gets the EquipTexture instance corresponding to the name and EquipType. Returns null if no EquipTexture with the given name and EquipType is found.

Parameters
modThe mod the equipment texture is from.
nameThe name.
typeThe type.
Returns

Definition at line 329 of file EquipLoader.cs.

330 {
331 if (!mod.equipTextures.TryGetValue(Tuple.Create(name, type), out var texture))
332 {
333 return null;
334 }
335 return texture;
336 }

References Terraria.ModLoader.Mod.equipTextures.