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

◆ GetMount()

static ModMount Terraria.ModLoader.MountLoader.GetMount ( int type)
inlinestatic

Gets the ModMount instance corresponding to the given type. Returns null if no ModMount has the given type.

Parameters
typeThe type of the mount.
Returns
Null if not found, otherwise the ModMount associated with the mount.

Definition at line 26 of file MountLoader.cs.

27 {
28 if (mountDatas.ContainsKey(type))
29 {
30 return mountDatas[type];
31 }
32 return null;
33 }
static readonly IDictionary< int, ModMount > mountDatas

References Terraria.ModLoader.MountLoader.mountDatas.

Referenced by Terraria.ModLoader.ModContent.GetModMount(), Terraria.ModLoader.MountLoader.UpdateEffects(), and Terraria.ModLoader.MountLoader.UpdateFrame().

+ Here is the caller graph for this function: