forked from df-mc/dragonfly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
item.go
52 lines (38 loc) · 1.71 KB
/
item.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package sound
import "github.com/df-mc/dragonfly/server/world"
// ItemBreak is a sound played when an item in the inventory is broken, such as when a tool reaches 0
// durability and breaks.
type ItemBreak struct{ sound }
// ItemThrow is a sound played when a player throws an item, such as a snowball.
type ItemThrow struct{ sound }
// ItemUseOn is a sound played when a player uses its item on a block. An example of this is when a player
// uses a shovel to turn grass into dirt path. Note that in these cases, the Block is actually the new block,
// not the old one.
type ItemUseOn struct {
// Block is generally the block that was created by using the item on a block. The sound played differs
// depending on this field.
Block world.Block
sound
}
// BucketFill is a sound played when a bucket is filled using a liquid source block from the world.
type BucketFill struct {
// Liquid is the liquid that the bucket is filled up with.
Liquid world.Liquid
sound
}
// BucketEmpty is a sound played when a bucket with a liquid in it is placed into the world.
type BucketEmpty struct {
// Liquid is the liquid that the bucket places into the world.
Liquid world.Liquid
sound
}
// BowShoot is a sound played when a bow is shot.
type BowShoot struct{ sound }
// ArrowHit is a sound played when an arrow hits ground.
type ArrowHit struct{ sound }
// EndermanTeleport is a sound played upon teleportation of an enderman, or teleportation of a player by an ender pearl or a chorus fruit.
type EndermanTeleport struct{ sound }
// UseSpyglass is a sound played when a player uses a spyglass.
type UseSpyglass struct{ sound }
// StopUsingSpyglass is a sound played when a player stops using a spyglass.
type StopUsingSpyglass struct{ sound }