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

◆ FromNetId()

static short Terraria.ID.ItemID.FromNetId ( short id)
inlinestatic

Definition at line 12800 of file ItemID.cs.

12801 {
12802 return id switch
12803 {
12804 -24 => 3769,
12805 -23 => 3768,
12806 -22 => 3767,
12807 -21 => 3766,
12808 -20 => 3765,
12809 -19 => 3764,
12810 -48 => 3480,
12811 -47 => 3481,
12812 -46 => 3482,
12813 -45 => 3483,
12814 -44 => 3484,
12815 -43 => 3485,
12816 -42 => 3486,
12817 -41 => 3487,
12818 -40 => 3488,
12819 -39 => 3489,
12820 -38 => 3490,
12821 -37 => 3491,
12822 -36 => 3492,
12823 -35 => 3493,
12824 -34 => 3494,
12825 -33 => 3495,
12826 -32 => 3496,
12827 -31 => 3497,
12828 -30 => 3498,
12829 -29 => 3499,
12830 -28 => 3500,
12831 -27 => 3501,
12832 -26 => 3502,
12833 -25 => 3503,
12834 -18 => 3504,
12835 -17 => 3505,
12836 -16 => 3506,
12837 -15 => 3507,
12838 -14 => 3508,
12839 -13 => 3509,
12840 -12 => 3510,
12841 -11 => 3511,
12842 -10 => 3512,
12843 -9 => 3513,
12844 -8 => 3514,
12845 -7 => 3515,
12846 -6 => 3516,
12847 -5 => 3517,
12848 -4 => 3518,
12849 -3 => 3519,
12850 -2 => 3520,
12851 -1 => 3521,
12852 _ => id,
12853 };
12854 }

Referenced by Terraria.Lang.GetItemName().