Class ItemstackComponentBase
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
Draws an itemstack
public class ItemstackComponentBase : RichTextComponentBase
- Inheritance
-
ItemstackComponentBase
- Derived
- Inherited Members
- Extension Methods
Constructors
ItemstackComponentBase(ICoreClientAPI)
public ItemstackComponentBase(ICoreClientAPI capi)
Parameters
capi
ICoreClientAPI
Fields
capi
protected ICoreClientAPI capi
Field Value
dummyInv
protected DummyInventory dummyInv
Field Value
offX
public double offX
Field Value
offY
public double offY
Field Value
parentBounds
protected ElementBounds parentBounds
Field Value
renderedTooltipSlot
protected ItemSlot renderedTooltipSlot
Field Value
stackInfo
protected GuiElementItemstackInfo stackInfo
Field Value
stackInfoBounds
protected ElementBounds stackInfoBounds
Field Value
Methods
Dispose()
public override void Dispose()
OnRequireInfoText(ItemSlot)
protected virtual string OnRequireInfoText(ItemSlot slot)
Parameters
slot
ItemSlot
Returns
RenderItemstackTooltip(ItemSlot, double, double, float)
public void RenderItemstackTooltip(ItemSlot slot, double renderX, double renderY, float dt)