Class ItemSlotOutput
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
A slot from which the player can only take stuff out of, but not place anything in it
public class ItemSlotOutput : ItemSlot
- Inheritance
-
ItemSlotOutput
- Inherited Members
- Extension Methods
Constructors
ItemSlotOutput(InventoryBase)
public ItemSlotOutput(InventoryBase inventory)
Parameters
inventory
InventoryBase
Methods
ActivateSlot(ItemSlot, ref ItemStackMoveOperation)
Called when a player has clicked on this slot. The source slot is the mouse cursor slot. This handles the logic of either taking, putting or exchanging items.
public override void ActivateSlot(ItemSlot sourceSlot, ref ItemStackMoveOperation op)
Parameters
sourceSlot
ItemSlotop
ItemStackMoveOperation
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
CanTake()
Whether or not this slots item can be retrieved.
public override bool CanTake()
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