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

◆ ItemCheck_UseArtisanLoaf()

void Terraria.Player.ItemCheck_UseArtisanLoaf ( Item sItem)
inlineprivate

Definition at line 44949 of file Player.cs.

44950 {
44951 if (sItem.type == 5326 && itemAnimation > 0 && !ateArtisanBread && ItemTimeIsZero)
44952 {
44954 ateArtisanBread = true;
44955 NetMessage.SendData(4, -1, -1, null, whoAmI);
44956 }
44957 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
bool ItemTimeIsZero
Definition Player.cs:4402
void ApplyItemTime(Item sItem, float multiplier=1f, bool? callUseItem=null)
Definition Player.cs:4907
bool ateArtisanBread
Definition Player.cs:2243

References Terraria.Player.ApplyItemTime(), Terraria.Player.ateArtisanBread, Terraria.Player.itemAnimation, Terraria.Player.ItemTimeIsZero, Terraria.NetMessage.SendData(), and Terraria.Entity.whoAmI.

Referenced by Terraria.Player.ItemCheck_OwnerOnlyCode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: