Class "ItemConfig"⚓︎
Info
ItemConfig does have a special Enum. you can find it here ItemConfigEnums
You can get this class by using the following function:
Example Code
Isaac.GetItemConfig()
Content Overview
Return value | Function |
---|---|
const ItemConfig Card | GetCard ( Card ID )⚓︎ |
const CardList | GetCards ( )⚓︎ |
const ItemConfig Item | GetCollectible ( CollectibleType ID )⚓︎ |
const userdata | GetCollectibles ( )⚓︎ |
const ItemConfig Item | GetNullItem ( NullItemID ID )⚓︎ |
const ItemList | GetNullItems ( )⚓︎ |
const ItemConfig PillEffect | GetPillEffect ( PillEffect ID )⚓︎ |
const PillList | GetPillEffects ( )⚓︎ |
const ItemConfig Item | GetTrinket ( TrinketType ID )⚓︎ |
const ItemList | GetTrinkets ( )⚓︎ |
static boolean | IsValidCollectible ( CollectibleType ID )⚓︎ |
static boolean | ShouldAddCostumeOnPickup ( ItemConfig Item Config )⚓︎ |
Functions⚓︎
GetCard ()⚓︎
const ItemConfig Card GetCard ( Card ID )⚓︎
Returns nil
if no itemconfig to the given ID can be found.
GetCards ()⚓︎
const CardList GetCards ( )⚓︎
Bugs
Calling Get() in this list does not return usable userdata, rendering it useless for that purpose.
GetCollectible ()⚓︎
const ItemConfig Item GetCollectible ( CollectibleType ID )⚓︎
Returns the Itemobject of a given CollectibleID. Returns nil of nothing was found.
Example Code
This function gets the item config of sad onion.
1 |
|
GetCollectibles ()⚓︎
const userdata GetCollectibles ( )⚓︎
Returns the List of all Collectibles.
Bug
This function is broken and returns userdata.
Example Code
This Code gets the highest possible collectible id including modded items.
1 2 3 |
|
Bugs
Calling Get() in this list does not return usable userdata, rendering it useless for that purpose.
GetNullItem ()⚓︎
const ItemConfig Item GetNullItem ( NullItemID ID )⚓︎
Returns nil
if no itemconfig to the given ID can be found.
GetNullItems ()⚓︎
const ItemList GetNullItems ( )⚓︎
Bugs
Calling Get() in this list does not return usable userdata, rendering it useless for that purpose.
GetPillEffect ()⚓︎
const ItemConfig PillEffect GetPillEffect ( PillEffect ID )⚓︎
Returns nil
if no itemconfig to the given ID can be found.
GetPillEffects ()⚓︎
const PillList GetPillEffects ( )⚓︎
Bugs
Calling Get() in this list does not return usable userdata, rendering it useless for that purpose.
GetTrinket ()⚓︎
const ItemConfig Item GetTrinket ( TrinketType ID )⚓︎
Returns nil
if no itemconfig to the given ID can be found.
GetTrinkets ()⚓︎
const ItemList GetTrinkets ( )⚓︎
Bugs
Calling Get() in this list does not return usable userdata, rendering it useless for that purpose.
IsValidCollectible ()⚓︎
static boolean IsValidCollectible ( CollectibleType ID )⚓︎
Function to check if a given item id is a valid collectible id (aka. this item exists). Returns True when it exists and False when it doesn't.
Since this function is a static function, the usage is a bit different. Take a look at the example code for the correct usage
Example Code
This Code checks, if the item "Sad Onion" (ID: 1) exists.
1 |
|
ShouldAddCostumeOnPickup ()⚓︎
static boolean ShouldAddCostumeOnPickup ( ItemConfig Item Config )⚓︎
Returns weather a given item config object should add a costume when picking up the associated item.
Since this function is a static function, the usage is a bit different. Take a look at the example code for the correct usage
Example Code
This Code checks, if the item "Sad Onion" (ID: 1) should add a costume on Pickup.
1 2 |
|