Table of Contents

Class ActiveSlotChangeEventArgs

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

This contains data about an event that fires when a player changes which slot they're actively using. Such as the currently selected hotbar slot.

public class ActiveSlotChangeEventArgs
Inheritance
ActiveSlotChangeEventArgs
Inherited Members

Constructors

ActiveSlotChangeEventArgs(int, int)

public ActiveSlotChangeEventArgs(int from, int to)

Parameters

from int
to int

Properties

FromSlot

The currently active slot being switched away from.

public int FromSlot { get; }

Property Value

int

ToSlot

The target slot that is being switched to.

public int ToSlot { get; }

Property Value

int