Table of Contents

Class ItemstackComponentBase

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll

Draws an itemstack

public class ItemstackComponentBase : RichTextComponentBase
Inheritance
ItemstackComponentBase
Derived
Inherited Members

Constructors

ItemstackComponentBase(ICoreClientAPI)

public ItemstackComponentBase(ICoreClientAPI capi)

Parameters

capi ICoreClientAPI

Fields

capi

protected ICoreClientAPI capi

Field Value

ICoreClientAPI

dummyInv

protected DummyInventory dummyInv

Field Value

DummyInventory

offX

public double offX

Field Value

double

offY

public double offY

Field Value

double

parentBounds

protected ElementBounds parentBounds

Field Value

ElementBounds

renderedTooltipSlot

protected ItemSlot renderedTooltipSlot

Field Value

ItemSlot

stackInfo

protected GuiElementItemstackInfo stackInfo

Field Value

GuiElementItemstackInfo

stackInfoBounds

protected ElementBounds stackInfoBounds

Field Value

ElementBounds

Methods

Dispose()

public override void Dispose()

OnRequireInfoText(ItemSlot)

protected virtual string OnRequireInfoText(ItemSlot slot)

Parameters

slot ItemSlot

Returns

string

RenderItemstackTooltip(ItemSlot, double, double, float)

public void RenderItemstackTooltip(ItemSlot slot, double renderX, double renderY, float dt)

Parameters

slot ItemSlot
renderX double
renderY double
dt float