Table of Contents

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 IWorldAccessor
mouseButton EnumMouseButton
modifiers EnumModifierKey
currentPriority EnumMergePriority
requestedQuantity int

Fields

ActingPlayer

The acting player within the world.

public IPlayer ActingPlayer

Field Value

IPlayer

ConfirmationMessageCode

The confirmation message code for this operation.

public string ConfirmationMessageCode

Field Value

string

CurrentPriority

The current Priority for merging slots.

public EnumMergePriority CurrentPriority

Field Value

EnumMergePriority

Modifiers

Any modifiers that the ActingPlayer is using for the operation (Ctrl, shift, alt)

public EnumModifierKey Modifiers

Field Value

EnumModifierKey

MouseButton

The mouse button the ActingPlayer has pressed.

public EnumMouseButton MouseButton

Field Value

EnumMouseButton

MovableQuantity

The amount moveable.

public int MovableQuantity

Field Value

int

MovedQuantity

The amount moved.

public int MovedQuantity

Field Value

int

RequestedQuantity

The amount requested.

public int RequestedQuantity

Field Value

int

RequiredPriority

The required Priority (can be null)

public EnumMergePriority? RequiredPriority

Field Value

EnumMergePriority?

WheelDir

public int WheelDir

Field Value

int

World

The world that the move operation is being performed.

public IWorldAccessor World

Field Value

IWorldAccessor

Properties

AltDown

Checks if the Alt key is held down.

public bool AltDown { get; }

Property Value

bool

CtrlDown

Checks if the Ctrl key is held down.

public bool CtrlDown { get; }

Property Value

bool

NotMovedQuantity

The amount not moved.

public int NotMovedQuantity { get; }

Property Value

int

ShiftDown

Checks if the Shift Key is held down.

public bool ShiftDown { get; }

Property Value

bool

Methods

ToMergeOperation(ItemSlot, ItemSlot)

Converts this MoveOperation to a Merge Operation.

public ItemStackMergeOperation ToMergeOperation(ItemSlot SinkSlot, ItemSlot SourceSlot)

Parameters

SinkSlot ItemSlot

The slot to put items.

SourceSlot ItemSlot

The slot to take items.

Returns

ItemStackMergeOperation