SoundModification

This class is used as a ItemModification to play sounds when the item is clicked

Parameters

inventoryItem

The InventoryItem to which this modification is applied

Constructors

Link copied to clipboard
constructor(inventoryItem: InventoryItem)

Types

Link copied to clipboard
class ItemSound(val sound: Sound, val clickType: ClickType)

This class is used to store a sound and the click types which should trigger the sound

Properties

Link copied to clipboard
open override val inventoryItem: InventoryItem

Functions

Link copied to clipboard

This function is used to add a sound to the item