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
typeEnumCharacterDressTypeinventoryInventoryBase
Fields
Type
public EnumCharacterDressType Type
Field Value
Properties
StorageType
The storage type of this slot.
public override EnumItemStorageFlags StorageType { get; }
Property Value
Methods
CanHold(ItemSlot)
Whether or not this slot can hold the item from the source slot.
public override bool CanHold(ItemSlot itemstackFromSourceSlot)
Parameters
itemstackFromSourceSlotItemSlot
Returns
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
sourceSlotItemSlotpriorityEnumMergePriority
Returns
IsDressType(IItemStack, EnumCharacterDressType)
Checks to see what dress type the given item is.
public static bool IsDressType(IItemStack itemstack, EnumCharacterDressType dressType)
Parameters
itemstackIItemStackdressTypeEnumCharacterDressType