Class ItemSlotCreative
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
public class ItemSlotCreative : ItemSlot
- Inheritance
-
ItemSlotCreative
- Inherited Members
- Extension Methods
Constructors
ItemSlotCreative(InventoryBase)
public ItemSlotCreative(InventoryBase inventory)
Parameters
inventoryInventoryBase
Methods
ActivateSlotLeftClick(ItemSlot, ref ItemStackMoveOperation)
Activates the left click functions of the given slot.
protected override void ActivateSlotLeftClick(ItemSlot sinkSlot, ref ItemStackMoveOperation op)
Parameters
sinkSlotItemSlotopItemStackMoveOperation
ActivateSlotMiddleClick(ItemSlot, ref ItemStackMoveOperation)
Activates the middle click functions of the given slot.
protected override void ActivateSlotMiddleClick(ItemSlot sinkSlot, ref ItemStackMoveOperation op)
Parameters
sinkSlotItemSlotopItemStackMoveOperation
ActivateSlotRightClick(ItemSlot, ref ItemStackMoveOperation)
Activates the right click functions of the given slot.
protected override void ActivateSlotRightClick(ItemSlot sourceSlot, ref ItemStackMoveOperation op)
Parameters
sourceSlotItemSlotopItemStackMoveOperation
FlipWith(ItemSlot)
Forces a flip with the given ItemSlot
protected override void FlipWith(ItemSlot withslot)
Parameters
withslotItemSlot
OnItemSlotModified(ItemStack)
The event fired when the slot is modified.
public override void OnItemSlotModified(ItemStack sinkStack)
Parameters
sinkStackItemStack
TakeOut(int)
Gets some of the contents of the stack.
public override ItemStack TakeOut(int quantity)
Parameters
quantityintThe amount to get from the stack.
Returns
- ItemStack
The stack with the quantity take out (or as much as was available)
TakeOutWhole()
Gets the entire contents of the stack, setting the base stack to null.
public override ItemStack TakeOutWhole()
Returns
TryFlipWith(ItemSlot)
Attempts to flip the ItemSlots.
public override bool TryFlipWith(ItemSlot itemSlot)
Parameters
itemSlotItemSlot
Returns
- bool
Whether or no the flip was successful.
TryPutInto(ItemSlot, ref ItemStackMoveOperation)
Returns the quantity of items that were not merged (left over in the source slot)
public override int TryPutInto(ItemSlot sinkSlot, ref ItemStackMoveOperation op)
Parameters
sinkSlotItemSlotopItemStackMoveOperation
Returns
- int
Amount of moved items