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
Methods
Initialize(IAssetManager, ICoreClientAPI, IMusicEngine)
Initialize the track.
public override void Initialize(IAssetManager assetManager, ICoreClientAPI capi, IMusicEngine musicEngine)
Parameters
assetManager
IAssetManagerthe global Asset Manager
capi
ICoreClientAPIThe 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
TrackedPlayerPropertiesPlayer Properties
conds
ClimateConditionpos
BlockPos
Returns
- bool
Should we play the current track?