Class ItemStackMoveOperation
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
public class ItemStackMoveOperation
- Inheritance
-
ItemStackMoveOperation
- Derived
- Inherited Members
- Extension Methods
Constructors
ItemStackMoveOperation(IWorldAccessor, EnumMouseButton, EnumModifierKey, EnumMergePriority, int)
public ItemStackMoveOperation(IWorldAccessor world, EnumMouseButton mouseButton, EnumModifierKey modifiers, EnumMergePriority currentPriority, int requestedQuantity = 0)
Parameters
world
IWorldAccessormouseButton
EnumMouseButtonmodifiers
EnumModifierKeycurrentPriority
EnumMergePriorityrequestedQuantity
int
Fields
ActingPlayer
The acting player within the world.
public IPlayer ActingPlayer
Field Value
ConfirmationMessageCode
The confirmation message code for this operation.
public string ConfirmationMessageCode
Field Value
CurrentPriority
The current Priority for merging slots.
public EnumMergePriority CurrentPriority
Field Value
Modifiers
Any modifiers that the ActingPlayer is using for the operation (Ctrl, shift, alt)
public EnumModifierKey Modifiers
Field Value
MouseButton
The mouse button the ActingPlayer has pressed.
public EnumMouseButton MouseButton
Field Value
MovableQuantity
The amount moveable.
public int MovableQuantity
Field Value
MovedQuantity
The amount moved.
public int MovedQuantity
Field Value
RequestedQuantity
The amount requested.
public int RequestedQuantity
Field Value
RequiredPriority
The required Priority (can be null)
public EnumMergePriority? RequiredPriority
Field Value
WheelDir
public int WheelDir
Field Value
World
The world that the move operation is being performed.
public IWorldAccessor World
Field Value
Properties
AltDown
Checks if the Alt key is held down.
public bool AltDown { get; }
Property Value
CtrlDown
Checks if the Ctrl key is held down.
public bool CtrlDown { get; }
Property Value
NotMovedQuantity
The amount not moved.
public int NotMovedQuantity { get; }
Property Value
ShiftDown
Checks if the Shift Key is held down.
public bool ShiftDown { get; }
Property Value
Methods
ToMergeOperation(ItemSlot, ItemSlot)
Converts this MoveOperation to a Merge Operation.
public ItemStackMergeOperation ToMergeOperation(ItemSlot SinkSlot, ItemSlot SourceSlot)