github.com/df-mc/dragonfly@v0.9.13/server/block/model.go (about) 1 package block 2 3 import ( 4 "github.com/df-mc/dragonfly/server/block/model" 5 "github.com/df-mc/dragonfly/server/world" 6 ) 7 8 // solid represents a block that is fully solid. It always returns a model.Solid when Model is called. 9 type solid struct{} 10 11 // Model ... 12 func (solid) Model() world.BlockModel { 13 return model.Solid{} 14 } 15 16 // empty represents a block that is fully empty/transparent, such as air or a plant. It always returns a 17 // model.Empty when Model is called. 18 type empty struct{} 19 20 // Model ... 21 func (empty) Model() world.BlockModel { 22 return model.Empty{} 23 } 24 25 // chest represents a block that has a model of a chest. 26 type chest struct{} 27 28 // Model ... 29 func (chest) Model() world.BlockModel { 30 return model.Chest{} 31 } 32 33 // carpet represents a block that has a model of a carpet. 34 type carpet struct{} 35 36 // Model ... 37 func (carpet) Model() world.BlockModel { 38 return model.Carpet{} 39 } 40 41 // tilledGrass represents a block that has a model of farmland or dirt paths. 42 type tilledGrass struct{} 43 44 // Model ... 45 func (tilledGrass) Model() world.BlockModel { 46 return model.TilledGrass{} 47 } 48 49 // leaves represents a block that has a model of leaves. A full block but with no solid faces. 50 type leaves struct{} 51 52 // Model ... 53 func (leaves) Model() world.BlockModel { 54 return model.Leaves{} 55 } 56 57 // thin represents a thin, partial block such as a glass pane or an iron bar, that connects to nearby solid faces. 58 type thin struct{} 59 60 // Model ... 61 func (thin) Model() world.BlockModel { 62 return model.Thin{} 63 }