C# Class Terraria.ModLoader.ModItem

Afficher le fichier Open project: bluemagic123/tModLoader Class Usage Examples

Méthodes publiques

Свойство Type Description
bossBagNPC int
projOnSwing bool

Méthodes publiques

Méthode Description
AddRecipes ( ) : void
AddTooltip ( string tooltip ) : void
AddTooltip2 ( string tooltip ) : void
AltFunctionUse ( Player player ) : bool
AnglerQuestChat ( string &description, string &catchLocation ) : void
ArmorArmGlowMask ( Player drawPlayer, float shadow, int &glowMask, Color &color ) : void
ArmorSetShadows ( Player player ) : void
AutoLightSelect ( bool &dryTorch, bool &wetTorch, bool &glowstick ) : void
Autoload ( string &name, string &texture, IList equips ) : bool
AutoloadEquip ( EquipType equip, string &texture, string &armTexture, string &femaleTexture ) : void
AutoloadFlame ( string &texture ) : void
CanEquipAccessory ( Player player, int slot ) : bool
CanHitNPC ( Player player, Terraria.NPC target ) : bool?
CanHitPvp ( Player player, Player target ) : bool
CanRightClick ( ) : bool
CanUseItem ( Player player ) : bool
CaughtFishStack ( int &stack ) : void
Clone ( ) : ModItem
Clone ( Item item ) : ModItem
ConsumeAmmo ( Player player ) : bool
ConsumeItem ( Player player ) : bool
DrawArmorColor ( Player drawPlayer, float shadow, Color &color, int &glowMask, Color &glowMaskColor ) : void
DrawBody ( ) : bool
DrawHair ( bool &drawHair, bool &drawAltHair ) : void
DrawHands ( bool &drawHands, bool &drawArms ) : void
DrawHead ( ) : bool
DrawLegs ( ) : bool
ExtractinatorUse ( int &resultType, int &resultStack ) : void
GetAlpha ( Color lightColor ) : Color?
GetAnimation ( ) : DrawAnimation
GetWeaponDamage ( Player player, int &damage ) : void
GetWeaponKnockback ( Player player, float &knockback ) : void
GrabRange ( Player player, int &grabRange ) : void
GrabStyle ( Player player ) : bool
HoldItem ( Player player ) : void
HoldItemFrame ( Player player ) : bool
HoldStyle ( Player player ) : void
HoldoutOffset ( ) : Vector2?
HoldoutOrigin ( ) : Vector2?
HorizontalWingSpeeds ( float &speed, float &acceleration ) : void
IsAnglerQuestAvailable ( ) : bool
IsArmorSet ( Item head, Item body, Item legs ) : bool
IsQuestFish ( ) : bool
IsVanitySet ( int head, int body, int legs ) : bool
Load ( TagCompound tag ) : void
LoadLegacy ( BinaryReader reader ) : void
MeleeEffects ( Player player, Rectangle hitbox ) : void
ModItem ( ) : System
ModifyHitNPC ( Player player, Terraria.NPC target, int &damage, float &knockBack, bool &crit ) : void
ModifyHitPvp ( Player player, Player target, int &damage, bool &crit ) : void
ModifyTooltips ( List tooltips ) : void
NetRecieve ( BinaryReader reader ) : void
NetSend ( BinaryWriter writer ) : void
OnCraft ( Recipe recipe ) : void
OnHitNPC ( Player player, Terraria.NPC target, int damage, float knockBack, bool crit ) : void
OnHitPvp ( Player player, Player target, int damage, bool crit ) : void
OnPickup ( Player player ) : bool
OpenBossBag ( Player player ) : void
PostDrawInInventory ( SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale ) : void
PostDrawInWorld ( SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI ) : void
PostReforge ( ) : void
PostUpdate ( ) : void
PreDrawInInventory ( SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale ) : bool
PreDrawInWorld ( SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float &rotation, float &scale, int whoAmI ) : bool
PreReforge ( ) : void
PreUpdateVanitySet ( Player player ) : void
RightClick ( Player player ) : void
Save ( ) : TagCompound
SetDefaults ( ) : void
SetMatch ( bool male, int &equipSlot, bool &robes ) : void
Shoot ( Player player, Vector2 &position, float &speedX, float &speedY, int &type, int &damage, float &knockBack ) : bool
Update ( float &gravity, float &maxFallSpeed ) : void
UpdateAccessory ( Player player, bool hideVisual ) : void
UpdateArmorSet ( Player player ) : void
UpdateEquip ( Player player ) : void
UpdateInventory ( Player player ) : void
UpdateVanity ( Player player, EquipType type ) : void
UpdateVanitySet ( Player player ) : void
UseItem ( Player player ) : bool
UseItemFrame ( Player player ) : bool
UseItemHitbox ( Player player, Rectangle &hitbox, bool &noHitbox ) : void
UseStyle ( Player player ) : void
VerticalWingSpeeds ( float &ascentWhenFalling, float &ascentWhenRising, float &maxCanAscendMultiplier, float &maxAscentMultiplier, float &constantAscend ) : void
WingUpdate ( Player player, bool inUse ) : void

Private Methods

Méthode Description
SetupClone ( Item clone ) : void
SetupItem ( Item item ) : void
SetupModItem ( Item item ) : void

Method Details

AddRecipes() public méthode

public AddRecipes ( ) : void
Résultat void

AddTooltip() public méthode

public AddTooltip ( string tooltip ) : void
tooltip string
Résultat void

AddTooltip2() public méthode

public AddTooltip2 ( string tooltip ) : void
tooltip string
Résultat void

AltFunctionUse() public méthode

public AltFunctionUse ( Player player ) : bool
player Terraria.Player
Résultat bool

AnglerQuestChat() public méthode

public AnglerQuestChat ( string &description, string &catchLocation ) : void
description string
catchLocation string
Résultat void

ArmorArmGlowMask() public méthode

public ArmorArmGlowMask ( Player drawPlayer, float shadow, int &glowMask, Color &color ) : void
drawPlayer Terraria.Player
shadow float
glowMask int
color Color
Résultat void

ArmorSetShadows() public méthode

public ArmorSetShadows ( Player player ) : void
player Terraria.Player
Résultat void

AutoLightSelect() public méthode

public AutoLightSelect ( bool &dryTorch, bool &wetTorch, bool &glowstick ) : void
dryTorch bool
wetTorch bool
glowstick bool
Résultat void

Autoload() public méthode

public Autoload ( string &name, string &texture, IList equips ) : bool
name string
texture string
equips IList
Résultat bool

AutoloadEquip() public méthode

public AutoloadEquip ( EquipType equip, string &texture, string &armTexture, string &femaleTexture ) : void
equip EquipType
texture string
armTexture string
femaleTexture string
Résultat void

AutoloadFlame() public méthode

public AutoloadFlame ( string &texture ) : void
texture string
Résultat void

CanEquipAccessory() public méthode

public CanEquipAccessory ( Player player, int slot ) : bool
player Terraria.Player
slot int
Résultat bool

CanHitNPC() public méthode

public CanHitNPC ( Player player, Terraria.NPC target ) : bool?
player Terraria.Player
target Terraria.NPC
Résultat bool?

CanHitPvp() public méthode

public CanHitPvp ( Player player, Player target ) : bool
player Terraria.Player
target Terraria.Player
Résultat bool

CanRightClick() public méthode

public CanRightClick ( ) : bool
Résultat bool

CanUseItem() public méthode

public CanUseItem ( Player player ) : bool
player Terraria.Player
Résultat bool

CaughtFishStack() public méthode

public CaughtFishStack ( int &stack ) : void
stack int
Résultat void

Clone() public méthode

public Clone ( ) : ModItem
Résultat ModItem

Clone() public méthode

public Clone ( Item item ) : ModItem
item Item
Résultat ModItem

ConsumeAmmo() public méthode

public ConsumeAmmo ( Player player ) : bool
player Terraria.Player
Résultat bool

ConsumeItem() public méthode

public ConsumeItem ( Player player ) : bool
player Terraria.Player
Résultat bool

DrawArmorColor() public méthode

public DrawArmorColor ( Player drawPlayer, float shadow, Color &color, int &glowMask, Color &glowMaskColor ) : void
drawPlayer Terraria.Player
shadow float
color Color
glowMask int
glowMaskColor Color
Résultat void

DrawBody() public méthode

public DrawBody ( ) : bool
Résultat bool

DrawHair() public méthode

public DrawHair ( bool &drawHair, bool &drawAltHair ) : void
drawHair bool
drawAltHair bool
Résultat void

DrawHands() public méthode

public DrawHands ( bool &drawHands, bool &drawArms ) : void
drawHands bool
drawArms bool
Résultat void

DrawHead() public méthode

public DrawHead ( ) : bool
Résultat bool

DrawLegs() public méthode

public DrawLegs ( ) : bool
Résultat bool

ExtractinatorUse() public méthode

public ExtractinatorUse ( int &resultType, int &resultStack ) : void
resultType int
resultStack int
Résultat void

GetAlpha() public méthode

public GetAlpha ( Color lightColor ) : Color?
lightColor Color
Résultat Color?

GetAnimation() public méthode

public GetAnimation ( ) : DrawAnimation
Résultat Terraria.DataStructures.DrawAnimation

GetWeaponDamage() public méthode

public GetWeaponDamage ( Player player, int &damage ) : void
player Terraria.Player
damage int
Résultat void

GetWeaponKnockback() public méthode

public GetWeaponKnockback ( Player player, float &knockback ) : void
player Terraria.Player
knockback float
Résultat void

GrabRange() public méthode

public GrabRange ( Player player, int &grabRange ) : void
player Terraria.Player
grabRange int
Résultat void

GrabStyle() public méthode

public GrabStyle ( Player player ) : bool
player Terraria.Player
Résultat bool

HoldItem() public méthode

public HoldItem ( Player player ) : void
player Terraria.Player
Résultat void

HoldItemFrame() public méthode

public HoldItemFrame ( Player player ) : bool
player Terraria.Player
Résultat bool

HoldStyle() public méthode

public HoldStyle ( Player player ) : void
player Terraria.Player
Résultat void

HoldoutOffset() public méthode

public HoldoutOffset ( ) : Vector2?
Résultat Vector2?

HoldoutOrigin() public méthode

public HoldoutOrigin ( ) : Vector2?
Résultat Vector2?

HorizontalWingSpeeds() public méthode

public HorizontalWingSpeeds ( float &speed, float &acceleration ) : void
speed float
acceleration float
Résultat void

IsAnglerQuestAvailable() public méthode

public IsAnglerQuestAvailable ( ) : bool
Résultat bool

IsArmorSet() public méthode

public IsArmorSet ( Item head, Item body, Item legs ) : bool
head Item
body Item
legs Item
Résultat bool

IsQuestFish() public méthode

public IsQuestFish ( ) : bool
Résultat bool

IsVanitySet() public méthode

public IsVanitySet ( int head, int body, int legs ) : bool
head int
body int
legs int
Résultat bool

Load() public méthode

public Load ( TagCompound tag ) : void
tag TagCompound
Résultat void

LoadLegacy() public méthode

public LoadLegacy ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Résultat void

MeleeEffects() public méthode

public MeleeEffects ( Player player, Rectangle hitbox ) : void
player Terraria.Player
hitbox Microsoft.Xna.Framework.Rectangle
Résultat void

ModItem() public méthode

public ModItem ( ) : System
Résultat System

ModifyHitNPC() public méthode

public ModifyHitNPC ( Player player, Terraria.NPC target, int &damage, float &knockBack, bool &crit ) : void
player Terraria.Player
target Terraria.NPC
damage int
knockBack float
crit bool
Résultat void

ModifyHitPvp() public méthode

public ModifyHitPvp ( Player player, Player target, int &damage, bool &crit ) : void
player Terraria.Player
target Terraria.Player
damage int
crit bool
Résultat void

ModifyTooltips() public méthode

public ModifyTooltips ( List tooltips ) : void
tooltips List
Résultat void

NetRecieve() public méthode

public NetRecieve ( BinaryReader reader ) : void
reader System.IO.BinaryReader
Résultat void

NetSend() public méthode

public NetSend ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
Résultat void

OnCraft() public méthode

public OnCraft ( Recipe recipe ) : void
recipe Terraria.Recipe
Résultat void

OnHitNPC() public méthode

public OnHitNPC ( Player player, Terraria.NPC target, int damage, float knockBack, bool crit ) : void
player Terraria.Player
target Terraria.NPC
damage int
knockBack float
crit bool
Résultat void

OnHitPvp() public méthode

public OnHitPvp ( Player player, Player target, int damage, bool crit ) : void
player Terraria.Player
target Terraria.Player
damage int
crit bool
Résultat void

OnPickup() public méthode

public OnPickup ( Player player ) : bool
player Terraria.Player
Résultat bool

OpenBossBag() public méthode

public OpenBossBag ( Player player ) : void
player Terraria.Player
Résultat void

PostDrawInInventory() public méthode

public PostDrawInInventory ( SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
frame Microsoft.Xna.Framework.Rectangle
drawColor Color
itemColor Color
origin Vector2
scale float
Résultat void

PostDrawInWorld() public méthode

public PostDrawInWorld ( SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
lightColor Color
alphaColor Color
rotation float
scale float
whoAmI int
Résultat void

PostReforge() public méthode

public PostReforge ( ) : void
Résultat void

PostUpdate() public méthode

public PostUpdate ( ) : void
Résultat void

PreDrawInInventory() public méthode

public PreDrawInInventory ( SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale ) : bool
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
frame Microsoft.Xna.Framework.Rectangle
drawColor Color
itemColor Color
origin Vector2
scale float
Résultat bool

PreDrawInWorld() public méthode

public PreDrawInWorld ( SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float &rotation, float &scale, int whoAmI ) : bool
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
lightColor Color
alphaColor Color
rotation float
scale float
whoAmI int
Résultat bool

PreReforge() public méthode

public PreReforge ( ) : void
Résultat void

PreUpdateVanitySet() public méthode

public PreUpdateVanitySet ( Player player ) : void
player Terraria.Player
Résultat void

RightClick() public méthode

public RightClick ( Player player ) : void
player Terraria.Player
Résultat void

Save() public méthode

public Save ( ) : TagCompound
Résultat TagCompound

SetDefaults() public méthode

public SetDefaults ( ) : void
Résultat void

SetMatch() public méthode

public SetMatch ( bool male, int &equipSlot, bool &robes ) : void
male bool
equipSlot int
robes bool
Résultat void

Shoot() public méthode

public Shoot ( Player player, Vector2 &position, float &speedX, float &speedY, int &type, int &damage, float &knockBack ) : bool
player Player
position Vector2
speedX float
speedY float
type int
damage int
knockBack float
Résultat bool

Update() public méthode

public Update ( float &gravity, float &maxFallSpeed ) : void
gravity float
maxFallSpeed float
Résultat void

UpdateAccessory() public méthode

public UpdateAccessory ( Player player, bool hideVisual ) : void
player Player
hideVisual bool
Résultat void

UpdateArmorSet() public méthode

public UpdateArmorSet ( Player player ) : void
player Player
Résultat void

UpdateEquip() public méthode

public UpdateEquip ( Player player ) : void
player Player
Résultat void

UpdateInventory() public méthode

public UpdateInventory ( Player player ) : void
player Player
Résultat void

UpdateVanity() public méthode

public UpdateVanity ( Player player, EquipType type ) : void
player Player
type EquipType
Résultat void

UpdateVanitySet() public méthode

public UpdateVanitySet ( Player player ) : void
player Player
Résultat void

UseItem() public méthode

public UseItem ( Player player ) : bool
player Player
Résultat bool

UseItemFrame() public méthode

public UseItemFrame ( Player player ) : bool
player Player
Résultat bool

UseItemHitbox() public méthode

public UseItemHitbox ( Player player, Rectangle &hitbox, bool &noHitbox ) : void
player Player
hitbox Rectangle
noHitbox bool
Résultat void

UseStyle() public méthode

public UseStyle ( Player player ) : void
player Player
Résultat void

VerticalWingSpeeds() public méthode

public VerticalWingSpeeds ( float &ascentWhenFalling, float &ascentWhenRising, float &maxCanAscendMultiplier, float &maxAscentMultiplier, float &constantAscend ) : void
ascentWhenFalling float
ascentWhenRising float
maxCanAscendMultiplier float
maxAscentMultiplier float
constantAscend float
Résultat void

WingUpdate() public méthode

public WingUpdate ( Player player, bool inUse ) : void
player Player
inUse bool
Résultat void

Property Details

bossBagNPC public_oe property

public int bossBagNPC
Résultat int

projOnSwing public_oe property

public bool projOnSwing
Résultat bool