Skip to content

CanAcceptItem

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void CanAcceptItem( ItemContainer instance, Item item, int targetPos )
{
    Puts( "CanAcceptItem works!" );
}

Location

  • ItemContainer::CanAcceptItem(Item item, int targetPos)
csharp
//---
		if (!flag)
		{
			return ItemContainer.CanAcceptResult.CannotAccept;
		}
	}
	object returnvar = Interface.CallHook("CanAcceptItem", this, item, targetPos);
	if (returnvar is ItemContainer.CanAcceptResult)
	{
		return (ItemContainer.CanAcceptResult)returnvar;
	}
	if (this.blockedItems != null && this.blockedItems.Contains(item.info))
//---

Released under the MIT License.