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
stackItemStackThe rendered item stack.
byEntityEntityAgentThe entity holding the stack.
worldPosVec3dThe collectible's TopMiddlePos transformed into world space, including first-person projection adjustments.
dtfloatTime since the previous frame, in seconds.