Table of Contents

Interface IHeldParticleEmitter

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

A collectible that emits custom particles from its rendered position in an entity's hands.

public interface IHeldParticleEmitter
Extension Methods

Methods

SpawnHeldParticles(ItemStack, EntityAgent, Vec3d, float)

Called once per rendered frame, outside shadow passes and while the game is not paused.

void SpawnHeldParticles(ItemStack stack, EntityAgent byEntity, Vec3d worldPos, float dt)

Parameters

stack ItemStack

The rendered item stack.

byEntity EntityAgent

The entity holding the stack.

worldPos Vec3d

The collectible's TopMiddlePos transformed into world space, including first-person projection adjustments.

dt float

Time since the previous frame, in seconds.