Table of Contents

Class EventMusicTrack

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll
[JsonObject(MemberSerialization.OptIn)]
public class EventMusicTrack : SurfaceMusicTrack, IMusicTrack
Inheritance
EventMusicTrack
Implements
Inherited Members
Extension Methods

Fields

SchematicCode

[JsonProperty]
public string SchematicCode

Field Value

string

Methods

Initialize(IAssetManager, ICoreClientAPI, IMusicEngine)

Initialize the track.

public override void Initialize(IAssetManager assetManager, ICoreClientAPI capi, IMusicEngine musicEngine)

Parameters

assetManager IAssetManager

the global Asset Manager

capi ICoreClientAPI

The Core Client API

musicEngine IMusicEngine

ShouldPlay(TrackedPlayerProperties, ClimateCondition, BlockPos)

Should this current track play?

public override bool ShouldPlay(TrackedPlayerProperties props, ClimateCondition conds, BlockPos pos)

Parameters

props TrackedPlayerProperties

Player Properties

conds ClimateCondition
pos BlockPos

Returns

bool

Should we play the current track?