![terraria autotrash tmodloader terraria autotrash tmodloader](https://i.ytimg.com/vi/2sRRsi5rxNE/maxresdefault.jpg)
More.Ĭalls ModItem.CanRightClick, then all GlobalItem.CanRightClick hooks, until one of the returns true. Hook that determines if an item will be prevented from being consumed by the research function. If all of them return true, this returns true. More.ĬanHitPvp ( Item item, Player player, Player target)Ĭalls all GlobalItem.CanHitPvp hooks, then ModItem.CanHitPvp, until one of them returns false. If all of them return null, this returns null. Otherwise, if any of them returns true then this returns true. If any of them returns false, this returns false. Gathers the results of ModItem.CanHitNPC and all GlobalItem.CanHitNPC hooks. More.ĬanConsumeBait ( Player player, Item bait)ĬanEquipAccessory ( Item item, int slot, bool modded)ĬanHitNPC ( Item item, Player player, NPC target) If all of them return true, returns true. More.ĬanAccessoryBeEquippedWith ( Item equippedItem, Item incomingItem)ĬanAutoReuseItem ( Item item, Player player)ĬanConsumeAmmo ( Item weapon, Item ammo, Player player)Ĭalls ModItem.CanConsumeAmmo for the weapon, ModItem.CanBeConsumedAsAmmo for the ammo, then each corresponding hook for the weapon and ammo, until one of them returns false. Then for each GlobalItem, if GlobalItem.IsVanitySet returns a non-empty string, calls GlobalItem.ArmorSetShadows, using player.head, player.body, and player.legs. This is then repeated for the player's body, then the legs. If the player's head texture's IsVanitySet returns true, calls the equipment texture's ArmorSetShadows. More.ĪrmorArmGlowMask (int slot, Player drawPlayer, float shadow, ref int glowMask, ref Color color)Ĭalls the item's body equipment texture's ArmorArmGlowMask hook, then all GlobalItem.ArmorArmGlowMask hooks. Returns whether any of the hooks returned true.
#TERRARIA AUTOTRASH TMODLOADER MOD#
It also stores a list of mod items by ID.ĪltFunctionUse ( Item item, Player player)Ĭalls ModItem.AltFunctionUse, then all GlobalItem.AltFunctionUse hooks, until one of them returns true. This serves as the central class from which item-related functions are carried out.