github.com/df-mc/dragonfly@v0.9.13/server/world/sound/item.go (about)

     1  package sound
     2  
     3  import "github.com/df-mc/dragonfly/server/world"
     4  
     5  // ItemBreak is a sound played when an item in the inventory is broken, such as when a tool reaches 0
     6  // durability and breaks.
     7  type ItemBreak struct{ sound }
     8  
     9  // ItemThrow is a sound played when a player throws an item, such as a snowball.
    10  type ItemThrow struct{ sound }
    11  
    12  // ItemUseOn is a sound played when a player uses its item on a block. An example of this is when a player
    13  // uses a shovel to turn grass into dirt path. Note that in these cases, the Block is actually the new block,
    14  // not the old one.
    15  type ItemUseOn struct {
    16  	// Block is generally the block that was created by using the item on a block. The sound played differs
    17  	// depending on this field.
    18  	Block world.Block
    19  
    20  	sound
    21  }
    22  
    23  // EquipItem is a sound played when the player fast equips an item by using it.
    24  type EquipItem struct {
    25  	// Item is the item that was equipped. The sound played differs depending on this field.
    26  	Item world.Item
    27  
    28  	sound
    29  }
    30  
    31  // BucketFill is a sound played when a bucket is filled using a liquid source block from the world.
    32  type BucketFill struct {
    33  	// Liquid is the liquid that the bucket is filled up with.
    34  	Liquid world.Liquid
    35  
    36  	sound
    37  }
    38  
    39  // BucketEmpty is a sound played when a bucket with a liquid in it is placed into the world.
    40  type BucketEmpty struct {
    41  	// Liquid is the liquid that the bucket places into the world.
    42  	Liquid world.Liquid
    43  
    44  	sound
    45  }
    46  
    47  // BowShoot is a sound played when a bow is shot.
    48  type BowShoot struct{ sound }
    49  
    50  // ArrowHit is a sound played when an arrow hits ground.
    51  type ArrowHit struct{ sound }
    52  
    53  // Teleport is a sound played upon teleportation of an enderman, or teleportation of a player by an ender pearl or a chorus fruit.
    54  type Teleport struct{ sound }
    55  
    56  // UseSpyglass is a sound played when a player uses a spyglass.
    57  type UseSpyglass struct{ sound }
    58  
    59  // StopUsingSpyglass is a sound played when a player stops using a spyglass.
    60  type StopUsingSpyglass struct{ sound }
    61  
    62  // GoatHorn is a sound played when a player uses a goat horn.
    63  type GoatHorn struct {
    64  	// Horn is the type of the goat horn.
    65  	Horn Horn
    66  
    67  	sound
    68  }
    69  
    70  // FireCharge is a sound played when a player lights a block on fire with a fire charge, or when a dispenser or a
    71  // blaze shoots a fireball.
    72  type FireCharge struct{ sound }