Class BlockSounds
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
public class BlockSounds
- Inheritance
-
BlockSounds
- Inherited Members
Fields
Ambient
public AssetLocation Ambient
Field Value
AmbientBlockCount
public float AmbientBlockCount
Field Value
Properties
Break
public virtual AssetLocation Break { get; set; }
Property Value
ByTool
Gets the sound that occurs when a specific tool hits a block.
public virtual Dictionary<EnumTool, BlockSounds> ByTool { get; set; }
Property Value
Hit
public virtual AssetLocation Hit { get; set; }
Property Value
Inside
public virtual AssetLocation Inside { get; set; }
Property Value
Place
public virtual AssetLocation Place { get; set; }
Property Value
Walk
public virtual AssetLocation Walk { get; set; }
Property Value
Methods
Clone()
Clones the block sounds.
public BlockSounds Clone()
Returns
GetBreakSound(EnumTool)
Gets the break sound either by the tool or by the block if the tool does not have a break sound.
public AssetLocation GetBreakSound(EnumTool tool)
Parameters
tool
EnumToolThe Tool used.
Returns
- AssetLocation
The resulting sound
GetBreakSound(IPlayer)
Gets the breaking sound, either provided by the tool or by this sound.
public AssetLocation GetBreakSound(IPlayer byPlayer)
Parameters
byPlayer
IPlayer
Returns
GetHitSound(EnumTool)
Gets the hit sound either by the tool or by the block if the tool does not have a hit sound.
public AssetLocation GetHitSound(EnumTool tool)
Parameters
tool
EnumTool
Returns
GetHitSound(IPlayer)
Gets the hit sound either provided by the tool or by the block.
public AssetLocation GetHitSound(IPlayer byPlayer)
Parameters
byPlayer
IPlayer
Returns
OnDeserializedMethod(StreamingContext)
[OnDeserialized]
public void OnDeserializedMethod(StreamingContext context)
Parameters
context
StreamingContext