Terraria.ModLoader.ModMountData

This class serves as a place for you to place all your properties and hooks for each mount. Create instances of ModMoundData (preferably overriding this class) to pass as parameters to Mod.AddMount.

Methods

#ctor()
Constructor
Autoload(System.String@,System.String@,System.Collections.Generic.IDictionary{Terraria.ModLoader.MountTextureType,System.String})()
Allows you to automatically load a mount instead of using Mod.AddMount. Return true to allow autoloading; by default returns the mod's autoload property. Name is initialized to the overriding class name, texture is initialized to the namespace and overriding class name with periods replaced with slashes, and extraTextures is initialized to a dictionary containing all MountTextureTypes as keys, with texture + "_" + the texture type name as values. Use this method to either force or stop an autoload, change the default display name and texture path, and to modify the extra mount textures.
SetDefaults()
Allows you to set the properties of this type of mount.
JumpHeight(System.Int32@,System.Single)()
Allows you to modify the mount's jump height based on its state.
JumpSpeed(System.Single@,System.Single)()
Allows you to modify the mount's jump speed based on its state.
UpdateEffects(Terraria.Player)()
Allows you to make things happen when mount is used (creating dust etc.) Can also be used for mount special abilities.
UpdateFrame(Terraria.Player,System.Int32,Microsoft.Xna.Framework.Vector2)()
Allows for manual updating of mount frame. Return false to stop the default frame behavior. Returns true by default.
UseAbility(Terraria.Player,Microsoft.Xna.Framework.Vector2,System.Boolean)()
Allows you to make things happen while the mouse is pressed while the mount is active. Called each tick the mouse is pressed.
AimAbility(Terraria.Player,Microsoft.Xna.Framework.Vector2)()
Allows you to make things happen when the mount ability is aiming (while charging).