Class ItemSlotSurvival
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
Standard survival mode slot that can hold everything except full backpacks Open in GitHub
public class ItemSlotSurvival : ItemSlot
- Inheritance
-
ItemSlotSurvival
- Derived
- Inherited Members
- Extension Methods
Constructors
ItemSlotSurvival(InventoryBase)
public ItemSlotSurvival(InventoryBase inventory)
Parameters
inventoryInventoryBase
Methods
CanHold(ItemSlot)
Whether or not this slot can hold the item from the source slot.
public override bool CanHold(ItemSlot sourceSlot)
Parameters
sourceSlotItemSlot
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