Table of Contents

Class ItemSlotCharacter

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public class ItemSlotCharacter : ItemSlot
Inheritance
ItemSlotCharacter
Inherited Members
Extension Methods

Constructors

ItemSlotCharacter(EnumCharacterDressType, InventoryBase)

public ItemSlotCharacter(EnumCharacterDressType type, InventoryBase inventory)

Parameters

type EnumCharacterDressType
inventory InventoryBase

Properties

StorageType

The storage type of this slot.

public override EnumItemStorageFlags StorageType { get; }

Property Value

EnumItemStorageFlags

Methods

CanHold(ItemSlot)

Whether or not this slot can hold the item from the source slot.

public override bool CanHold(ItemSlot itemstackFromSourceSlot)

Parameters

itemstackFromSourceSlot ItemSlot

Returns

bool

CanTakeFrom(ItemSlot, EnumMergePriority)

Whether or not this slot can take the item from the source slot.

public override bool CanTakeFrom(ItemSlot sourceSlot, EnumMergePriority priority = EnumMergePriority.AutoMerge)

Parameters

sourceSlot ItemSlot
priority EnumMergePriority

Returns

bool

IsDressType(IItemStack, EnumCharacterDressType)

Checks to see what dress type the given item is.

public static bool IsDressType(IItemStack itemstack, EnumCharacterDressType dressType)

Parameters

itemstack IItemStack
dressType EnumCharacterDressType

Returns

bool