OnItemFilter
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnItemFilter( Item item, StorageContainer instance, int targetSlot )
{
Puts( "OnItemFilter works!" );
}
Location
- StorageContainer::ItemFilter(Item item, int targetSlot)
csharp
public virtual bool ItemFilter(Item item, int targetSlot)
{
object returnvar = Interface.CallHook("OnItemFilter", item, this, targetSlot);
if (returnvar is bool)
{
return (bool)returnvar;
}
return this.onlyAcceptCategory == ItemCategory.All || item.info.category == this.onlyAcceptCategory;
//---