-
Notifications
You must be signed in to change notification settings - Fork 140
/
model.go
63 lines (48 loc) · 1.45 KB
/
model.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
53
54
55
56
57
58
59
60
61
62
63
package block
import (
"github.com/df-mc/dragonfly/server/block/model"
"github.com/df-mc/dragonfly/server/world"
)
// solid represents a block that is fully solid. It always returns a model.Solid when Model is called.
type solid struct{}
// Model ...
func (solid) Model() world.BlockModel {
return model.Solid{}
}
// empty represents a block that is fully empty/transparent, such as air or a plant. It always returns a
// model.Empty when Model is called.
type empty struct{}
// Model ...
func (empty) Model() world.BlockModel {
return model.Empty{}
}
// chest represents a block that has a model of a chest.
type chest struct{}
// Model ...
func (chest) Model() world.BlockModel {
return model.Chest{}
}
// carpet represents a block that has a model of a carpet.
type carpet struct{}
// Model ...
func (carpet) Model() world.BlockModel {
return model.Carpet{}
}
// tilledGrass represents a block that has a model of farmland or dirt paths.
type tilledGrass struct{}
// Model ...
func (tilledGrass) Model() world.BlockModel {
return model.TilledGrass{}
}
// leaves represents a block that has a model of leaves. A full block but with no solid faces.
type leaves struct{}
// Model ...
func (leaves) Model() world.BlockModel {
return model.Leaves{}
}
// thin represents a thin, partial block such as a glass pane or an iron bar, that connects to nearby solid faces.
type thin struct{}
// Model ...
func (thin) Model() world.BlockModel {
return model.Thin{}
}