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
EnumCharacterDressTypeinventory
InventoryBase
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
itemstackFromSourceSlot
ItemSlot
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
sourceSlot
ItemSlotpriority
EnumMergePriority
Returns
IsDressType(IItemStack, EnumCharacterDressType)
Checks to see what dress type the given item is.
public static bool IsDressType(IItemStack itemstack, EnumCharacterDressType dressType)
Parameters
itemstack
IItemStackdressType
EnumCharacterDressType