Table of Contents

Class ItemSlotSurvival

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

Standard survival mode slot that can hold everything except full backpacks

public class ItemSlotSurvival : ItemSlot
Inheritance
ItemSlotSurvival
Derived
Inherited Members
Extension Methods

Constructors

ItemSlotSurvival(InventoryBase)

public ItemSlotSurvival(InventoryBase inventory)

Parameters

inventory InventoryBase

Methods

CanHold(ItemSlot)

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

public override bool CanHold(ItemSlot sourceSlot)

Parameters

sourceSlot 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