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