Table of Contents

Class ItemRenderInfo

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll

Holds information on how a collectible should be rendered in hands, on the ground or in gui. In collectible.OnBeforeRender() the values are prefilled with the default ones.

public class ItemRenderInfo
Inheritance
ItemRenderInfo
Inherited Members
Extension Methods

Fields

AlphaTest

For discarding fragments with alpha value below this threshold

public float AlphaTest

Field Value

float

ApplyColor

public bool ApplyColor

Field Value

bool

CullFaces

Wether or not to cull back faces

public bool CullFaces

Field Value

bool

DamageEffect

public float DamageEffect

Field Value

float

HalfTransparent

(Currently) not used.

public bool HalfTransparent

Field Value

bool

InSlot

The slot the stack is currently in

public ItemSlot InSlot

Field Value

ItemSlot

ModelRef

The model to be rendered

public MultiTextureMeshRef ModelRef

Field Value

MultiTextureMeshRef

NormalShaded

public bool NormalShaded

Field Value

bool

OverlayOpacity

public float OverlayOpacity

Field Value

float

OverlayTexture

public LoadedTexture OverlayTexture

Field Value

LoadedTexture

TextureId

The texture to be used when rendering. Should probalby be the texture id of the block or item texture atlas

public int TextureId

Field Value

int

TextureSize

public Size2i TextureSize

Field Value

Size2i

Transform

The transform to be applied when rendered

public ModelTransform Transform

Field Value

ModelTransform

dt

public float dt

Field Value

float

Methods

SetRotOverlay(ICoreClientAPI, float)

public void SetRotOverlay(ICoreClientAPI capi, float opacity)

Parameters

capi ICoreClientAPI
opacity float