Table of Contents

Class CreativeInventoryTab

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public class CreativeInventoryTab : InventoryGeneric, IInventory, IReadOnlyCollection<ItemSlot>, IEnumerable<ItemSlot>, IEnumerable
Inheritance
CreativeInventoryTab
Implements
Inherited Members
Extension Methods

Constructors

CreativeInventoryTab(int, string, string, ICoreAPI)

public CreativeInventoryTab(int quantitySlots, string className, string instanceId, ICoreAPI api)

Parameters

quantitySlots int
className string
instanceId string
api ICoreAPI

CreativeInventoryTab(int, string, ICoreAPI)

public CreativeInventoryTab(int quantitySlots, string invId, ICoreAPI api)

Parameters

quantitySlots int
invId string
api ICoreAPI

Fields

TabIndex

public int TabIndex

Field Value

int

Methods

GetTransitionSpeedMul(EnumTransitionType, ItemStack)

Does this inventory speed up or slow down a transition for given itemstack? (Default: 1 for perish and 0 otherwise)

public override float GetTransitionSpeedMul(EnumTransitionType transType, ItemStack stack)

Parameters

transType EnumTransitionType
stack ItemStack

Returns

float

NewSlot(int)

Called when initializing the inventory or when loading the contents

protected override ItemSlot NewSlot(int slotId)

Parameters

slotId int

Returns

ItemSlot