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
CreativeInventoryTab(int, string, ICoreAPI)
public CreativeInventoryTab(int quantitySlots, string invId, ICoreAPI api)
Parameters
Fields
TabIndex
public int TabIndex
Field Value
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
EnumTransitionTypestack
ItemStack
Returns
NewSlot(int)
Called when initializing the inventory or when loading the contents
protected override ItemSlot NewSlot(int slotId)
Parameters
slotId
int