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