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
assetManagerIAssetManagerthe global Asset Manager
capiICoreClientAPIThe Core Client API
musicEngineIMusicEngine
ShouldPlay(TrackedPlayerProperties, ClimateCondition, BlockPos)
Should this current track play?
public override bool ShouldPlay(TrackedPlayerProperties props, ClimateCondition conds, BlockPos pos)
Parameters
propsTrackedPlayerPropertiesPlayer Properties
condsClimateConditionposBlockPos
Returns
- bool
Should we play the current track?