Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ItemFromCatchingNPCBestiaryInfoElement.cs
Go to the documentation of this file.
1
using
Terraria.GameContent.UI.Elements
;
2
using
Terraria.ID
;
3
using
Terraria.UI
;
4
5
namespace
Terraria.GameContent.Bestiary
;
6
7
public
class
ItemFromCatchingNPCBestiaryInfoElement
:
IItemBestiaryInfoElement
,
IBestiaryInfoElement
,
IProvideSearchFilterString
8
{
9
private
int
_itemType
;
10
11
public
ItemFromCatchingNPCBestiaryInfoElement
(
int
itemId)
12
{
13
_itemType
= itemId;
14
}
15
16
public
UIElement
ProvideUIElement
(
BestiaryUICollectionInfo
info)
17
{
18
if
(info.UnlockState <
BestiaryEntryUnlockState
.CanShowDropsWithoutDropRates_3)
19
{
20
return
null
;
21
}
22
return
new
UIBestiaryInfoLine<string>
((
"catch item #"
+
_itemType
) ??
""
);
23
}
24
25
public
string
GetSearchString
(ref
BestiaryUICollectionInfo
info)
26
{
27
if
(info.UnlockState <
BestiaryEntryUnlockState
.CanShowDropsWithoutDropRates_3)
28
{
29
return
null
;
30
}
31
return
ContentSamples
.
ItemsByType
[
_itemType
].Name;
32
}
33
}
Terraria.GameContent.Bestiary.ItemFromCatchingNPCBestiaryInfoElement._itemType
int _itemType
Definition
ItemFromCatchingNPCBestiaryInfoElement.cs:9
Terraria.GameContent.Bestiary.ItemFromCatchingNPCBestiaryInfoElement.GetSearchString
string GetSearchString(ref BestiaryUICollectionInfo info)
Definition
ItemFromCatchingNPCBestiaryInfoElement.cs:25
Terraria.GameContent.Bestiary.ItemFromCatchingNPCBestiaryInfoElement.ProvideUIElement
UIElement ProvideUIElement(BestiaryUICollectionInfo info)
Definition
ItemFromCatchingNPCBestiaryInfoElement.cs:16
Terraria.GameContent.Bestiary.ItemFromCatchingNPCBestiaryInfoElement.ItemFromCatchingNPCBestiaryInfoElement
ItemFromCatchingNPCBestiaryInfoElement(int itemId)
Definition
ItemFromCatchingNPCBestiaryInfoElement.cs:11
Terraria.GameContent.Bestiary.ItemFromCatchingNPCBestiaryInfoElement
Definition
ItemFromCatchingNPCBestiaryInfoElement.cs:8
Terraria.GameContent.UI.Elements.UIBestiaryInfoLine
Definition
UIBestiaryInfoLine.cs:8
Terraria.ID.ContentSamples.ItemsByType
static Dictionary< int, Item > ItemsByType
Definition
ContentSamples.cs:809
Terraria.ID.ContentSamples
Definition
ContentSamples.cs:9
Terraria.UI.UIElement
Definition
UIElement.cs:12
Terraria.GameContent.Bestiary.IBestiaryInfoElement
Definition
IBestiaryInfoElement.cs:6
Terraria.GameContent.Bestiary.IItemBestiaryInfoElement
Definition
IItemBestiaryInfoElement.cs:4
Terraria.GameContent.Bestiary.IProvideSearchFilterString
Definition
IProvideSearchFilterString.cs:4
Terraria.GameContent.Bestiary.BestiaryEntryUnlockState
BestiaryEntryUnlockState
Definition
BestiaryEntryUnlockState.cs:4
Terraria.GameContent.Bestiary
Definition
BestiaryDatabase.cs:5
Terraria.GameContent.UI.Elements
Definition
AWorldListItem.cs:8
Terraria.ID
Definition
AchievementHelperID.cs:1
Terraria.UI
Definition
ChatLine.cs:3
Terraria.GameContent.Bestiary.BestiaryUICollectionInfo
Definition
BestiaryUICollectionInfo.cs:4
source
Terraria.GameContent.Bestiary
ItemFromCatchingNPCBestiaryInfoElement.cs
Generated by
1.10.0